Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LexBasic.g4:136:15: reference to undefined rule: DOT #274

Closed
ghost opened this issue Dec 21, 2015 · 3 comments
Closed

LexBasic.g4:136:15: reference to undefined rule: DOT #274

ghost opened this issue Dec 21, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 21, 2015

The fragment Dot is defined, not the fragment DOT, I think that is an error

@teverett
Copy link
Member

in which grammar directory is this problem?

@ghost
Copy link
Author

ghost commented Dec 28, 2015

It is a problem in ANTLRv4Lexer.g4, it imports Lexbasic.g4, when using the antlr-grammar this problem occurred.

@teverett
Copy link
Member

teverett commented May 5, 2016

Is this still a problem? I see this in LexBasic.g4

fragment Dot : '.' ;

and this in ANTLRv4Lexer.g4

DOT : Dot ;

So "DOT" is defined as "Dot" which is defined as "'.'". I think it's ok like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant