abacus icon indicating copy to clipboard operation
abacus copied to clipboard

parse_polish/1

Open smolcatgirl opened this issue 5 years ago • 1 comments
trafficstars

This would solve #19. Negative numbers need to be written like this ( - 3 ), which results in -3. And also rn I cant write things like (+ 1 2 3), this should result in {:add, 1, {:add, 2, {:add, 3}}}. But I dont know how to implement this. Except for this everything works as expected.

smolcatgirl avatar Oct 20 '20 23:10 smolcatgirl

that was quick. before I properly review it, at first glance it looks good, but I have no clue if a deep variable access in polish notation is the same as the normal notation:

foo.bar.baz vs . (. foo bar) baz

narrowtux avatar Oct 23 '20 16:10 narrowtux