softdevteam / grmtools

Rust grammar tool libraries and binaries
Other
494 stars 32 forks source link

Weird that `nimbleparse` works on `java7.y` `java7.l` even though the `GT` symbol in both is different. #420

Closed jymchng closed 10 months ago

jymchng commented 10 months ago

GT symbol in java7.l: https://github.com/softdevteam/grammars/blob/master/java7/java.l#L80

> "GT"

GT symbol in java7.y: https://github.com/softdevteam/grammars/blob/master/java7/java.y#L81

%epp GT "<"
ltratt commented 10 months ago

That's a bug in the %epp line, though it has no semantic effect on the parsing (%epp only kicks in when we print out how to fix a syntax error). I'll raise a PR on the "grammars" repo (if you find other bugs in those grammars, please feel free to open issues / PRs on that repo.