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

Issues with parser and/or lexer grammar(s) prevent preview #687

Closed
mburbidg opened this issue Jan 20, 2024 · 2 comments
Closed

Issues with parser and/or lexer grammar(s) prevent preview #687

mburbidg opened this issue Jan 20, 2024 · 2 comments
Labels
Milestone

Comments

@mburbidg
Copy link

My grammar is split into separate parser and lexer files(grammars). I can paste these into the ANTLR Lab and parse strings in the grammar. I can also generate Go code from these grammar files and parse strings using the resulting code.

But when I use the IntelliJ plug-in, I get the following message in the Parse-tree pane:

Issues with parser and/or lexer grammar(s) prevent preview; see ANTLR Tool Output pane.

There is nothing in the ANTLR Tool Output pane.

The grammar files are in the following repository: https://github.com/mburbidg/gqlgrammar

@bjansen bjansen added the bug label Feb 1, 2024
@bjansen
Copy link
Collaborator

bjansen commented Mar 9, 2024

OK I guess a more explicit error should appear somewhere, in this particular case it's because you used grammar GQLParser; instead of parser grammar GQLParser;.

@mburbidg
Copy link
Author

mburbidg commented Mar 9, 2024

Oh wow. How simple. Thank you for looking at this!

@bjansen bjansen closed this as completed in 1668e58 Mar 9, 2024
@bjansen bjansen added this to the 1.23.1 milestone Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants