Closed distransient closed 10 years ago
Parsing source text such as
1+2*4^3+5
should output delimited text such as
add 1 ( mul 2 ( exp 4 3 ) ) 5
and source representation such as
['add', '1', [ 'mul', '2', [ 'exp', '4', '3' ] ], '5' ]
and should execute to return the value 134
134
Notes:
+
-
*
/
^
Parsing source text such as
should output delimited text such as
and source representation such as
and should execute to return the value
134
Notes:
+
,-
,*
,/
,^
, and their unicode equivalents