We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test.g4:
test.g4
grammar test; test @after{ print( $stop.text); } : 'foo' 'bar' { print( $start.text ); } 'baz' ;
What happens?
$ antlr4 -o /tmp/antlr/gen -Dlanguage=Cpp test.g4 error(33): missing code generation template ThisRulePropertyRef_startHeader error(33): missing code generation template ThisRulePropertyRef_stopHeader
Versions:
$ antlr4 ANTLR Parser Generator Version 4.7.1 [...] $ java -version openjdk version "1.8.0_144" OpenJDK Runtime Environment (build 1.8.0_144-b01) OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
The text was updated successfully, but these errors were encountered:
I get no error and the generated Parser.cpp looks fine when using instead $ctx.start.text etc.
$ctx.start.text
Sorry, something went wrong.
Add TODOs, improve output whitespacing, fix $stop -> $ctx.stop
f41d417
$stop not supported in 4.7.1 C++: antlr/antlr4#2207
No branches or pull requests
test.g4
:What happens?
Versions:
$ antlr4 ANTLR Parser Generator Version 4.7.1 [...] $ java -version openjdk version "1.8.0_144" OpenJDK Runtime Environment (build 1.8.0_144-b01) OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
The text was updated successfully, but these errors were encountered: