Anonymous user
Arithmetic evaluation: Difference between revisions
→{{header|Ruby}}
Line 2,535:
def operator?(token)
$op_priority.
end
Line 2,552:
if operator?(token)
# clear stack of higher priority operators
pop_connect_push(op_stack, node_stack)
end
Line 2,573:
end
pop_connect_push(op_stack, node_stack)
end
|