osa1 / parsegen

An LR parser generator, implemented as a proc macro
MIT License
15 stars 0 forks source link

Generate lossless parse trees #2

Open osa1 opened 2 years ago

osa1 commented 2 years ago

This branch modifies parsegen to generate parsers that generate lossless parse trees.

I wanted to take the simplest approach for now (currently busy moving to another country..), but in the final version we don't need to remove semantic actions entirely. We could easily generate a lossless parse tree parser, or one with semantic actions, based on an input field like type: [lossless|semantic].