-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
In PetitParser 1, a tool named "PetitPreprocessor" was added. The goal is to be able to preprocess the input to remove things such as comments in order to make the grammar to write easier while conserving the right positions in the input.
I think it would be nice to add it to PetitParser2.
I check if it was easy to migrate but it is not straightforward. PetitPreprocessor use the fact that PP1 streams are positionable while they are not in PP2. I don't have the time now to check how to update it to work with PP2.
https://github.com/moosetechnology/PetitParser/tree/development/src/PetitPreprocessor
https://github.com/moosetechnology/PetitParser/tree/development/src/PetitPreprocessor-Tests
Metadata
Metadata
Assignees
Labels
No labels