-
This code can be compiled by the Dart compiler, but it can't be parse with the given rules in the Spec:
```
abstract class StreamController {
final int i1 = 0;
abstract int i2; // Can't parse
…
-
Hi,
following our conversations, I've moved to a build where a generic grammar is used to produce language specific grammars, and lexers/parsers are produced programmatically using org.antlr.Tool v 3…
-
I am trying to use grammarinator to generate test cases for `sqlite`.
I am using the ANTLR grammar for `sqlite` that is available at the official antlr repo:
- [Lexer](https://github.com/antlr/gr…
-
The field name `file_name` is not compatible with the filter expression parsing.
```
SearchRequest searchRequest = SearchRequest.defaults()
.withTopK(4)
.withFilterExpression(PagePdfDo…
-
Hi, I'm running the sample in antlr tools and getting these comments.
2:9 token recognition error at: '+'
2:10 extraneous input 'foo' expecting ';'
I've made no changes and just clicked the ru…
-
I'd like to propose a second "rule" processor (`ANTLRParseTreeToPSIConverter`) by the Rule Context's class name instead of the rule index in Antlr's generated Parser class. The goal is to provide enou…
-
A very simple hello grammar file:
```
grammar Hello ;
firstRule : 'hello' ID ;
ID: [a-z]+ ;
WS : [ \t\r\n]+ -> skip ;
```
Generated `HelloLexer.cpp` contains following code snippet:
``` …
-
Dear all,
I created a grammar called goal.g4
Then, from terminal (I am on a mac) I launch
"java -cp "antlr-4.7.1-complete.jar" org.antlr.v4.Tool goal.g4 -listener -visitor"
that terminates…
-
Apologies in advance if this is already possible. My search for "antlr4 skip generation of enter and exit rules for certain parser rules" didn't turn up anything.
Some parser rules are organizing p…
-
Lexer-
lexer grammar SandyLexer;
// Whitespace
NEWLINE : ('\r\n' | 'r' | '\n') -> skip;
WS : ([ \t]+ | ' ') -> skip;
// Keywords
BY : 'by…