Arithmetic evaluation: Difference between revisions
m
→{{header|Phix}}
Line 3,721:
elsif token="-" then
get_token()
Expr(3) -- makes "-3^2" yield -9 (ie -(3^2)) not 9 (ie (-3)^2).
if op!=0 then PopFactor() end if
if integer(opstack[$]) then
|