-
Hi,
Here is a parser rule with two different types of alternatives:
- with two numerical arguments `BinaryNumberOp`
- with two logical arguments `BinaryLogicalOp`
``` antlr
logicalExpression returns…
-
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
…
-
Navigation is not working in version 2.4.x(I have tried 2.40, 2.4.1, 2.4.2).After switching back to 2.3.1, it works fine.
Extension version: 2.4.x
Version: 1.83.1 (user setup)
Commit: f1b07bd25df…
-
Before getting into the details I'd like to share some ideas about this issue. The example that I'll use is this one:
```
CREATE TYPE address (
street text,
phones set
);
CREATE TABLE user (
n…
-
I ran into a weird bug where EOF is failing to match with the error `no viable alternative at input ''`
Here is a minimal grammar to reproduce it.
```antlr
grammar Test;
startingRule: 'test' …
-
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…
-
-
Java 8+ supports default interface methods which could be used instead of generating separate BaseListener or BaseVisitor classes. Could this be an option when generating for Java 8+?
-
If the lexer grammar is composed only by fragments, for example:
```antlr
lexer gramar MyGrammar;
fragment
FRAGMENT_TOKEN : 'token' ;
```
ANTLR4 generates Java code with a syntax error:
…
-
When using the `-Dlanguage=Cpp` flag, the emitted code uses dynamic_cast. This makes it difficult to integrate this source into projects which have RTTI disabled.