| www.delorie.com/gnu/docs/bison/bison_55.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Defining a data type for locations is much simpler than for semantic values, since all tokens and groupings always use the same type.
The type of locations is specified by defining a macro called YYLTYPE.
When YYLTYPE is not defined, Bison uses a default structure type with
four members:
typedef struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
} YYLTYPE;
|
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |