congo-cc / congo-parser-generator

The CongoCC Parser Generator, the Next Generation of JavaCC 21, which in turn was the next generation of JavaCC
https://discuss.congocc.org/
Other
36 stars 11 forks source link

Fix named child bugs, convert some named child uses to properties in Java.ccc for regression testing #65

Closed adMartem closed 11 months ago

adMartem commented 11 months ago

I think everything works as intended as long as X_SYNTHETIC_NODES_ENABLED is not true. I'm still trying to figure out why, when synthetic nodes are turned on (for example something like: @zeroOrMoreThing = (...)*) the Python Congo parser reports the same beginning offset for the synthetic node as Java, but reports the ending offset as the first parsed token that follows, instead of the first token following (unparsed or parsed) as is the case with Java. This quirk causes the test-python to fail, so I can't check that in yet. So, I'll do another PR when that is solved.