Ken Domino
Ken Domino
Related Issues for [golang grammar](https://github.com/antlr/grammars-v4/tree/93e20b3b49e1fec0d2db774cba97996149c096eb/golang) to fix: * https://github.com/antlr/grammars-v4/issues/4448 * https://github.com/antlr/grammars-v4/issues/4317 * https://github.com/antlr/grammars-v4/issues/2496 * https://github.com/antlr/grammars-v4/issues/2310 * https://github.com/antlr/grammars-v4/issues/2285 * https://github.com/antlr/grammars-v4/issues/2071 * https://github.com/antlr/grammars-v4/issues/1596 To do: * Add Antlr4ng, Dart, JavaScript ports. *...
I'm having a hard time determining the exact URLs for these .jars and C++ libraries. Please be specific, e.g., https://repo1.maven.org/maven2/org/antlr/antlr4-runtime/4.13.2/antlr4-runtime-4.13.2.jar or https://github.com/antlr/website-antlr4/blob/gh-pages/download/antlr-4.13.2-complete.jar or https://github.com/antlr/website-antlr4/blob/gh-pages/download/antlr4-cpp-runtime-4.13.2-macos.zip or https://github.com/antlr/website-antlr4/blob/gh-pages/download/antlr4-cpp-runtime-4.13.2-source.zip etc. I can't find...
The MacOS github machines are infamous. Always doing timeouts. Should be fine to mrge.
You can use either `'{'` or `ASM_LBRACE` in a parser rule, because Antlr looks up the string `'{'` and finds that there's the lexer rule `ASM_LBRACE : '{';`. They resolve...
For a "split grammar", you should have "parser grammar ImperiumParser; options { tokenVocab=ImperiumLexer; }" at the top of the parser grammar ImperiumParser.g4, and "lexer grammar ImperiumLexer;" at the top of...
`https://search.maven.org/solrsearch/select?q=a:antlr4-master+g:org.antlr`. I mentioned this here. https://github.com/antlr/antlr4/issues/4698#issuecomment-2376841225. The change, [which should be in the antlr4-tools repo](https://github.com/antlr/antlr4-tools/blob/10a090aab6ec70217d1d8aa0c2f16c9f1e425861/antlr4_tool_runner.py#L24-L44), looks instead to `https://repo1.maven.org/maven2/org/antlr/antlr4/`, avoiding `search.maven.org` entirely, which is not robust, frequently down--more often than...
Yes, the current workaround is to always use the `-v` "option." But, you may want to use `-v` for another reason. In [grammars-v4](https://github.com/antlr/grammars-v4), we always use the `-v` "option" because...
@Duttenheim, You might want to first resolve ambiguity in your grammar, [GPULang.g4](https://github.com/gscept/GPULang/blob/faa23ad6cd01abed2ff0df6f644a1d44b569d47e/code/compiler/ext/antlr4/grammar/GPULang.g4). I stripped the grammar to essential EBNF ([GPULang.g4.txt](https://github.com/user-attachments/files/20655502/GPULang.g4.txt); using [trparse](https://github.com/kaby76/Trash/tree/ff83752b4904f66198c853fd23b295bb6584677a/src/trparse) GPULang.g4 | [trquery](https://github.com/kaby76/Trash/tree/ff83752b4904f66198c853fd23b295bb6584677a/src/trquery) -c [strip.xq](https://github.com/kaby76/g4-scripts/blob/352cc1c4602e74ec6acd59ccd9c5f5c9871d62bd/strip.xq) | [trsponge](https://github.com/kaby76/Trash/tree/ff83752b4904f66198c853fd23b295bb6584677a/src/trsponge) -c),...
Yes, your grammar is *really slow*! I grabbed the latest copy of your grammar, and it's still pretty ambiguous according to trperf. For the grammar you just changed in the...
No, there isn't. In fact, [the r grammar](https://github.com/antlr/grammars-v4/tree/e07dbbf3445d31da61af5f54f04df78ea40ab9f8/r) is not written in ["target agnostic format"](https://github.com/antlr/antlr4/blob/dev/doc/target-agnostic-grammars.md). So, not only do the actions in the r-grammar contain Java, the actions contain syntax...