grammars-v4
grammars-v4 copied to clipboard
Grammars written for ANTLR v4; expectation that the grammars are free of actions.
* Changes to _scripts/regtest.sh so we don't uninstall/reinstall Trash tools. It's wasted bandwidth. * Add a loop around "go get" to repeat 5 times or fail. * In response to...
Parse hexstrings and binarystrings correctly per ANSI standard. Fixes #2741. * Identify hexstrings and binarystrings in the parse tree by their own parser rules. * Do not accept hexstrings containing...
Fix the priority problem of 'BETWEEN AND' expression and 'AND' logical operator. For example: ```sql SELECT a FROM t1 WHERE a BETWEEN 1*2 AND 10 AND b IN (SELECT b...
Rexx has support for string literals in hexadecimal and binary. Hexstrings are, per ISO standard section 6.2.2.38, strings of traditional hex digits without regard to case, with optional blanks between...
There doesn't seem to be a way to make the [grammar tester](https://github.com/antlr/grammars-v4/tree/master/_grammar-test) work for a grammar that uses `options {superClass=...;}`. Specifically, there doesn't appear to be a way to feed...
@KvanTTT had a suggestion for simplifying the change I made in PR #2746. Since that PR was already merged, here's a new one. He already reviewed the change over in...
This is pretty weird. [sql/postgresql](https://github.com/antlr/grammars-v4/tree/master/sql/postgresql) produces errors for [case.sql](https://github.com/antlr/grammars-v4/blob/master/sql/postgresql/examples/case.sql), but it is not flagged in the test results. Note, it would skip a bad parse if an ".error" file exists,...
The Rexx parser contains a small amount of Java code in a couple of semating predicates. There does not appear to be a way to accomplish the parse without the...
FSharp
Hello 🤗 Sorry for the slightly awkward question, but I see lot's of esoteric and niche languages being supported, which is awesome of course, while F# seems to be missing...
Hello, I used this project to do Postgresql parser in my recent work, but I found that there is currently support for Java and C#, no support for Golang, it...