Arithmetic evaluation: Difference between revisions

+ast note
(Hanson's device)
(+ast note)
Line 953:
* uses Icon style type coercion
* accepts single unary operators ( ++3 will break it)
* represents the AST is a nested list eliminating unneeded parenthesis.
==={{header|Icon}}===
<lang Icon>procedure main() #: simple arithmetical parser / evaluator
Anonymous user