Dart2 Grammar not recognizing Collection literals

94 Views Asked by At

i'm using a grammar from https://github.com/antlr/grammars-v4/blob/master/dart2/Dart2.g4, and trying to recognize Collection literals, tehre is an example of a sample in https://dart.dev/#try-dart, but the grammar does not recognize "var", and in this case literals like dict sets and even lists, maybe its not recognized in antlr4 because its not defined to do so, but would like to have help find what is the root of the problem, maybe i'm doing something wrong....

0

There are 0 best solutions below