Show HN: Parsing a Reverse Polish Expression
lambdaway.free.fr
lambdaway.free.fr
h('b', h('i', h('u', 'Hello world')));It's significantly more efficient when you have an entire page of calculations with tons of parentheses to get through. Try it out, especially if you're nostalgic for your old engineering calculator—this brings the best of both worlds.
Seriously, this is MUCH simpler than recursive descent compilers or lex/yacc/bison.
Add a good typing system to it, and you've got STOIC, a programming language from the 1970s.