grammars-v4
grammars-v4 copied to clipboard
Grammars written for ANTLR v4; expectation that the grammars are free of actions.
Expressions like ```new a.B().call()``` are parsed incorrectly as ```new (singleExpression a.B().call) arguments ``` I tried to reorder the productions (similarly to #2178), but without success. Adding a semantic predicate fails...
Сurrent MySQL grammar is missing any rules for parsing [the DELIMITER command](https://dev.mysql.com/doc/refman/5.7/en/stored-programs-defining.html). It causes problems when, for example, parsing the output of `mysqldump`: the utility encloses all function/procedure declarations into...
I know it's a nit-pick but in [Clojure.g4](https://github.com/antlr/grammars-v4/blob/master/clojure/Clojure.g4), "provence" should read "provenance". Creating a PR to make that one change.
* Add EOF to start rule. Remove entry-point because trgen doesn't need it with proper start rule.
There is grammar for Dart2. I'm curious about whether there is support for Dart3's grammar.
Adding F# grammar.
I'm looking for BigQuery grammar, but I can't find any solution. There is SnowFlake but no BigQuery.
### compilationUnit is not a properly formed start rule All start rules--no exceptions--must have an EOF termination. The scala grammar does not. https://github.com/antlr/grammars-v4/blob/3fb73536ca8b30074e330adfbb65ddb96af5151f/scala/Scala.g4#L549-L551 ### Grammar does not accept expression ('/'...