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