grammars-v4
grammars-v4 copied to clipboard
Grammars written for ANTLR v4; expectation that the grammars are free of actions.
If I understand the CPP14 documentation correctly identifiers can contain (nearly) all Unicode letters. Meaning the following code is valid CPP (compiles with gcc): ```cpp int main() { int ÔŒλ...
Hi, I use antlr4 to deal with http protocol according to the rfc. When I define this grammar  ```javascript OWS : (SP | HTAB)* ; SP : ' '...
The following statement is the simplest namespace import as per the standard since 2015 through 2023 `import * as ns1 from "mod1"` However, in the javascript parser .g4 file the...
Dear all, I've developed an antlr4 Eiffel grammar (for the language current version). How can I add it to the repository? Best regards, Miguel Oliveira e Silva ([email protected]) [Eiffel.zip](https://github.com/antlr/grammars-v4/files/13955846/Eiffel.zip)
`local a = GetClass(data).OtherFunc(self, ohterData)` GetClass is a function that returns an object with a member function OtherFunc. GetClass(data).OtherFunc(self, otherData) should be parsed as a tree structure where the root...
Auto reformat can make rule less human readable. Example in commit id af7ed073a36180c5bdacb92f2c6f27a596ca51f1 line 1657 to 1678 (removed) and 1664 to 1679 (added) Is there a way to specify an...
For the Swift v5 grammar there is a huge performance problem: The fillUp function in the SwiftSupport class uses a lot of resources/time due to the way the LA and...