For a more elegant solution, see these tiny languages parsed using Floyd's operator precedence parsing:
http://breuleux.net/blog/language-howto.html
https://news.ycombinator.com/item?id=8554084
For a more elegant solution, see these tiny languages parsed using Floyd's operator precedence parsing:
http://breuleux.net/blog/language-howto.html
https://news.ycombinator.com/item?id=8554084