ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
Rebuilding with this line does work but emits multiple warnings.
Mod:
: '\\' ('b'|'t'|'n'|'f'|'r'|'\''|'\\')
Warnings:
warning(157): Java.g4:547:14: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:548:14: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:549:14: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:550:14: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:551:14: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:552:14: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:553:14: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:554:13: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:555:21: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:556:25: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:557:21: rule expression contains an assoc terminal option in an unrecognized location
warning(157): Java.g4:558:14: rule expression contains an assoc terminal option in an unrecognized location
Please include the following information:
Trying to build the .g4 file from the books source examples fails
This is the section of Java.g4 which fails with line numbers:
It appears the
'\"
is breaking.Rebuilding with this line does work but emits multiple warnings.
Mod:
Warnings: