grammars-v4
grammars-v4 copied to clipboard
Grammars written for ANTLR v4; expectation that the grammars are free of actions.
**Changes** - Fixed major parsing errors and inconsistencies - Removed Java test and replaced them with SASS files
``` 2022-08-08T15:25:37.0856980Z go: github.com/antlr/antlr4/runtime/Go/[email protected]: invalid version: Get "https://proxy.golang.org/github.com/antlr/antlr4/runtime/%21go/antlr/@v/4.10.info": stream error: stream ID 7; INTERNAL_ERROR; received from peer 2022-08-08T15:25:37.0877720Z Build failed ``` Github has crappy links to the network. The Dart...
Added a section in the `README.md` of the PHP Grammar so that users can address the issue that is reported in #2730
Rexx has a quirky definition for concatenation. In addition to the common case of an infix binary `||` operator, there are two more ways to concatenate values. The Rexx standard...
As per a conversation in [the antlr-discussions Google group](https://groups.google.com/g/antlr-discussion/c/-g5CF0MuUBk), there is confusion as to use of the grammars in this Github repo that are missing a copyright or license notice....
Take [the haskell grammar](https://github.com/antlr/grammars-v4/tree/master/haskell), and input [pullTasks.hs](https://github.com/antlr/grammars-v4/blob/master/haskell/examples/pullTasks.hs), then produce a listing of tokens. ``` [@0,0:5='double',,1:0] [@1,6:6=' ',,channel=1,1:6] [@2,7:8='::',,1:7] [@3,9:9=' ',,channel=1,1:9] [@4,10:12='Num',,1:10] [@5,13:13=' ',,channel=1,1:13] [@6,14:14='a',,1:14] [@7,15:15=' ',,channel=1,1:15] [@8,16:17='=>',,1:16] [@9,18:18=' ',,channel=1,1:18] [@10,19:19='a',,1:19]...
This concerns [this code in Java](https://github.com/antlr/grammars-v4/blob/128ebeb55f66061675726ce35e0f47c5c6bfb9d0/php/Java/PhpLexerBase.java#L75) vs [this code in CSharp](https://github.com/antlr/grammars-v4/blob/128ebeb55f66061675726ce35e0f47c5c6bfb9d0/php/CSharp/PhpLexerBase.cs#L83). These codes should not be different, but on sets the token type for the current token, while the other...
There are multiple occurences of actions and predicates such as the following: https://github.com/antlr/grammars-v4/blob/0c9a11ea096dd182862dac03f25766cd5546ff95/php/PhpLexer.g4#L47 https://github.com/antlr/grammars-v4/blob/0c9a11ea096dd182862dac03f25766cd5546ff95/php/PhpLexer.g4#L63 When the Python files are generated, they result in cases such as the following: ``` def...