1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Syntax: bf(%scanner) tt(header)
Use tt(header) as the pathname of a file to include in the parser's class
header file. See the description of the link(--scanner)(SCANOPT) option for
details about this directive. When this directive is used a tt(Scanner
d_scanner) data member is automatically included in the generated parser,
while the predefined bf(int lex()) member is simply returning
tt(d_scanner.lex())'s return value. When, in addition to the tt(%scanner)
directive the tt(%flex) directive was also specified then the function
tt(d_scanner.YYText()) is called.
Unless double quotes or angular brackets were explixity used, the specified
tt(header) file will be surrounded by double quotes.
It is an error to use this directive in combination with an already existing
parser-class header not including `tt(header)'.
|