Node:Location Type, Next:, Up:Locations



Data Type of Locations

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:

struct
{
  int first_line;
  int first_column;
  int last_line;
  int last_column;
}