Skip to content

Throw warning if symbol conflicts with generated code in another language or runtime #1670

Closed
@KvanTTT

Description

@KvanTTT

Consider grammar with file root element. If generate parser for Python2 target the following error will be thrown:

error(134): L.g4:18:0: symbol file conflicts with generated code in target language or runtime

But if we change runtime to Java no error and warning will be thrown.

So, I suggest to throw a warning in this case:

warning(134): L.g4:18:0: symbol file conflicts with generated code in another language or runtime

This check allows us to write more universal grammars for all targets.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions