| 1 |
Syntax: bf(%lsp-needed) |
| 2 |
|
| 3 |
When this directive is specified the standard location stack is added to the |
| 4 |
generated parser class. The standard location type (defined in the parser's |
| 5 |
base class) is equal to the following struct: |
| 6 |
verb( |
| 7 |
struct LTYPE_ |
| 8 |
{ |
| 9 |
int timestamp; |
| 10 |
int first_line; |
| 11 |
int first_column; |
| 12 |
int last_line; |
| 13 |
int last_column; |
| 14 |
char *text; |
| 15 |
}; |
| 16 |
) |
| 17 |
Note that defining this struct type does not imply that its field are also |
| 18 |
assigned. Some form of communication with the lexical scanner is probably |
| 19 |
required to initialize the fields of this struct properly. |