Parsing/Shunting-yard algorithm: Difference between revisions

m
→‎{{header|Phix}}: no_empty now defaults to true
(Added 11l)
m (→‎{{header|Phix}}: no_empty now defaults to true)
Line 3,383:
string res = "", sep = "", top
sequence stack = {}
sequence ops = split(substitute_all(infix,{"(",")"},{" ( "," ) "}),' ',no_empty:=1,limit:=0)
printf(1,"Infix input: %-30s%s", {infix,iff(show_workings?'\n':'\t')})
for i=1 to length(ops) do
7,806

edits