> 5 + (2 * 9 / (7 + 5 + 4)) * (1024 * 1024) / 19 > > becomes: > > $(math +, 5 $(math /, $(math *, $(math /, $(math *, 2 9) $(math +, 7 5 4)) > $(math *, 1024 1024)) 19)) > > versus: > > $(op + 5 $(op / $(op * $(op / $(op * 2 9) $(op + 7 5 4)) $(op * 1024 1024)) > 19)) > > or: > > $(+ 5 $(/ $(* $(/ $(* 2 9) $(+ 7 5 4)) $(* 1024 1024)) 19))
I propose the following (a variation of example 2): $(math + 5 (/ (* (/ (* 2 9) (+ 7 5 4)) (* 1024 1024)) 19)) This would involve doing our own parsing of the argument, however this should be trivial since we are using prefix notation. same with cond.