Skip to content

Migrate PetitPreprocessor #58

@jecisc

Description

@jecisc

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions