Next: A Complete C++ Example, Previous: C++ Parser Interface, Up: C++ Parsers
The parser invokes the scanner by calling yylex
. Contrary to C
parsers, C++ parsers are always pure: there is no point in using the
%define api.pure
directive. Therefore the interface is as follows.