This is an example of using Flex and Bison to generate a parser that can be packaged up as a Ruby extension. The subject is JSON because it's LALR compatible and easily recognisable.
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).
Embedded software developer with background in smart meter product development.
- Requirements capture, solution design, task decomposition, documentation
- C, MISRA C, C++, Ruby
- M2M protocols, especially those in the domain of smart metering (DLMS/COSEM, GBCS)
- Automation with Jenkins and Ansible
Embedded software developer with background in smart meter product development.
- Requirements capture, solution design, task decomposition, documentation
- C, MISRA C, C++, Ruby
- M2M protocols, especially those in the domain of smart metering (DLMS/COSEM, GBCS)
- Automation with Jenkins and Ansible