Open greenfork opened 10 months ago
When running with individual files like:
../build/release/compiler peg.peg
then peg.peg and json.peg work fine, but the pony.peg does have an issue.
When giving two args like is done in the examples in the report. It would create a compiler from the using the first one of the two peg files and run over the second.
So there's at least a couple bugs to look for in the examples. One.
../build/release/compiler pony.peg
where the pony.peg isn't valid.
And
../build/release/compiler peg.peg json.peg
where the parser created by peg.peg doesn't understand json.peg. the bug there would probably be peg.peg not validating json.peg. IE the bug is probably in peg.peg. Because json.peg is valid, just not when peg.peg parses it.
The two different bugs should be addressed in different PRs.
I have a fix for the pony.peg issue. But it exposes a larger issue that the pony.peg is out of date and missing rules. I opened #45 for that new much larger issue.
the grammar in peg.peg should be updated to be the same as the grammar in peg/pegparser.pony
.