Hi,
I am particullary new to Antlr and I tried to generate C++ target, but the code does not compile, because there are some strange Java(?) artifacts, such as:
TESLALexer.h > StringBuilder buf = new StringBuilder(); // can't make locals in lexer rules
TESLALexer.cpp > case 6: setText(buf.toString()); buf.setLength(0); System.out.println(getText()); break;
TESLAParser.h > StringBuilder buf = new StringBuilder(); // can't make locals in lexer rules
Anybody have an idea, how they got inside?
I am attaching the grammar for anyone willing to test it.
Thank you,
Martin