Dervall/Piglet — Issue #9: Code generation for prebuilt parsers
Author: Dervall
Created: 2012-02-15 14:00:43+00:00
State: open

There is no reason why Piglet shouldn't be able to generate code just as the other big tools do. I would suggest generating just the compressed tables, and providing ParserFactory with another loader method to load tables from a separate class.

The main issue is how to provide a nice access to the lambdas that are used for OnReduce and OnParse actions. An option would be to generate this using a similar syntax as is used in bison ($$, $1 and so on)