grammars-v4
                                
                                
                                
                                    grammars-v4 copied to clipboard
                            
                            
                            
                        Grammars written for ANTLR v4; expectation that the grammars are free of actions.
Continuing to disambiguate the [golang grammar](https://github.com/antlr/grammars-v4/tree/master/golang). In [anonymousMethods.go](https://github.com/antlr/grammars-v4/blob/master/golang/examples/anonymousMethods.go), [line 7](https://github.com/antlr/grammars-v4/blob/e6d1e0650c1058c3b55b8d8b8d8011c0d3910408/golang/examples/anonymousMethods.go#L7) has the string `fmt.Println(s)`. The `s` in the string is ambiguous because `s` can be parsed two ways: ``` ../examples/anonymousMethods.go.d=109.a=1:...
Go generic type aliases were introduced in 1.23 with the environment variable setting `GOEXPERIMENT=aliastypeparams` and is fully supported in 1.24. The spec on which the Golang parser is based has...
Cannot parse: https://github.com/dave/dst/blob/master/gendst/restorer.go parser hangs. Stack trace: org.antlr.v4.runtime.atn.PredictionContext.merge(org.antlr.v4.runtime.atn.PredictionContext, org.antlr.v4.runtime.atn.PredictionContext, boolean, org.antlr.v4.runtime.misc.DoubleKeyMap) line: 148 org.antlr.v4.runtime.atn.PredictionContext.mergeSingletons(org.antlr.v4.runtime.atn.SingletonPredictionContext, org.antlr.v4.runtime.atn.SingletonPredictionContext, boolean, org.antlr.v4.runtime.misc.DoubleKeyMap) line: 221 org.antlr.v4.runtime.atn.PredictionContext.merge(org.antlr.v4.runtime.atn.PredictionContext, org.antlr.v4.runtime.atn.PredictionContext, boolean, org.antlr.v4.runtime.misc.DoubleKeyMap) line: 151 org.antlr.v4.runtime.atn.PredictionContext.mergeArrays(org.antlr.v4.runtime.atn.ArrayPredictionContext, org.antlr.v4.runtime.atn.ArrayPredictionContext, boolean, org.antlr.v4.runtime.misc.DoubleKeyMap) line:...
It has been suggested in the past a few times already and it was discussed in issue #4412: keeping two different MySQL grammars leads to confusion and unnecessary work. There...
See https://github.com/antlr/grammars-v4/pull/4412#issuecomment-2692709282.
Hey, I'm relatively new to Antlr so sorry if this is intended to be fixed downstream by implementers of the parser. Running the Lua grammar i hit a undefined token...
https://dev.mysql.com/doc/refman/8.4/en/with.html ``` INSERT INTO dates (date) SELECT date FROM ( WITH RECURSIVE date_range AS ( SELECT DATE('2023-01-01') AS date UNION ALL SELECT date + INTERVAL 1 DAY FROM date_range WHERE...
This issue has been fixed in PR #4421
I am using Python Grammar version 1.13.2. My program is also equipped with the antl4 compiler, but I am getting many errors as shown in the picture. 