Hacker News new | ask | show | jobs
by cjhdev 3557 days ago
I've learned a lot about LALR and GLR using Bison in combination with Ruby.

Bison and Flex are available as apt packages on Ubuntu and there is heaps of documentation.

The Ruby angle means you don't have to roll your own AST structures. Also, Ruby's 'VALUE' type is easily passed around in Bison grammar.

example:

https://github.com/cjhdev/slow_blink/blob/master/etc/slow_bl...