Closed
Description
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.