-
I think the parse tree visualization is an amazing work!
One thing I noticed is that it is not interactive now? The parse tree is not reflecting the grammar change instantly.Also, I cannot detach t…
-
```
lexer grammar SomeSubLexer;
mode SUB_MODE;
```
is not permitted, while
```
lexer grammar SomeSubLexer;
SOME_VERY_USELESS_TOKEN: 'you_might_miss_this_token';
mode SUB_MODE;
```
is.
-
Let's port this simple example from [The Definitive Antlr 4 Reference](https://media.pragprog.com/titles/tpantlr2/listener.pdf) Rows.g4 grammar:
``` antlr4
grammar Rows;
@parser::members {
…
-
### The setup
I have an example grammar:
```
grammar HelloWorld
entry Rule: {infer SubRule}name=ID|age=NUM;
hidden terminal WS: /\s+/;
terminal NUM: /[0-9]+/;
terminal ID: /[_a-zA-Z][\w…
Lotes updated
11 months ago
-
ghost updated
7 years ago
-
I'm not sure if I did something wrong, or if there is a bug in AntlR, or the C++ version of antlr.
but here what I'm getting, and I'll let you judge from the image alone, that it's weird:
![image](h…
-
ghost updated
6 years ago
-
`VarsDecl.g4` describes the syntax of variable declarations, such as `int a, b, c`.
```
grammar VarsDecl;
decl : type vars ;
type : 'int' # IntType
| 'float' # FloatType…
-
Chris - is this still a relevant project in 2021?
I'd like to use srcML on some Typescript code, but it's not exactly clear, how to, efficiently, add support for new languages.
I want to avoid r…
-
Idea is to replace LGPL licensed parser with MIT licensed version from https://github.com/antlr/grammars-v4/blob/master/cql3/CqlParser.g4 (I contributed fixes, which allowed all tests to pass).
I c…