You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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: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?)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.
The text was updated successfully, but these errors were encountered: