...
...
For a grammar T.g
ANTLR3 will then create the files TLexer.hpp, TLexer.cpp, TParser.hpp
and TParser.cpp
which contain the classes TLexer
and TParser
. Tree Parsers are not yet supported.
Specifying an
...
C++ namespace for your recognizer
You can specify that your generated recognizer should be declared within a specific namespace as shown below. By default all recognizers are generated as top-level types with no enclosing namespace. The Parser has to include the Lexer and both the lexer and Parser have to include the traits
grammar MyGrammar;
...