Parsing/RPN to infix conversion: Difference between revisions
m
→{{header|Julia}}
Line 2,106:
for tok in rpn
if all(isnumber, tok)
push!(infix, parse(Int, tok))
else
last = pop!(infix)
Line 2,122:
{{output}}
<pre>
Current step: Any[
Current step: Any[
Current step: Any[
Current step: Any[
Current step: Any[
Current step: Any[:(
The final infix result: Any[:(
Current step: Any[:(
Current step: Any[:(
Current step: Any[:((
Current step: Any[:((
Current step: Any[:(((
The final infix result: Any[:(((
</pre>
|