tmpvar / livecad

live coding of 3d surfaces and objects
livecad.wtf
53 stars 2 forks source link

Infix Operator Tokens #12

Closed distransient closed 10 years ago

distransient commented 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

Notes: