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

Disable IDEA ANTLR plugin from generating parsers and leave it to GRADLE ANTLR plugin #704

Open
gnom7 opened this issue May 29, 2024 · 0 comments

Comments

@gnom7
Copy link

gnom7 commented May 29, 2024

Is there an option to disable IDEA ANTLR plugin from generating parsers? I'd like to exclusively use GRADLE ANTLR plugin for this purpose. Especially given that IDEA ANTLR plugin doesn't seem to make use of generated parsers, AFAIK it interprets grammars?

It is quite confusing that while IDEA ANTLR plugin uses interpreter under the hood, it still to some extent relies on generated tokens and interferes with GRADLE ANTLR plugin. I'd expect it to either be:

  • isolated generation process, hidden from user (e.g. to tmp dir or to in-memory files), especially in case of interpreted ANTLR, so users won't deal with plugin's compilation settings (maybe except for target language choice, which btw might be a dropdown?)
  • leveraging existing generation process of GRADLE ANTRL plugin or any other mechanism used by any build system, e.g. by just pointing IDEA ANTLR plugin to directory with generated files or even better plugin might invoke already properly configured GRADLE ANTLR plugin task to generate sources, would be useful since I guess anyway no-one would rely on IDEA plugin to generate production parsers but instead would leverage build system for that, would be especially useful if one day this plugin would support semantic predicates (btw why it is the case that currently it is not supported?)

So, that we will avoid conflicts between GRADLE and IDEA ANTLR plugins or even having to configure both of them with same or separate configs to avoid such conflicts.

@gnom7 gnom7 changed the title Separate lexer/parser grammar support Disable IDEA ANTLR plugin from generating parsers and leave it to GRADLE ANTLR plugin May 29, 2024
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