Skip to content

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

@gnom7

Description

@gnom7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions