Show HN: Parse JSON with Flex, Bison, and Ruby(github.com) |
Show HN: Parse JSON with Flex, Bison, and Ruby(github.com) |
I've used this technique to produce tools that parse syntax other than JSON. I think it's neat because Flex/Bison is very mature, it works well the the Ruby C API, and the parser produced is self contained (i.e. no runtime components).