2.4.1 Declarations for
The C and Bison declarations for the location tracking calculator are
the same as the declarations for the infix notation calculator.
/* Location tracking calculator. */
#define YYSTYPE int
int yylex (void);
void yyerror (char const *);
/* Bison declarations. */
%left '-' '+'
%left '*' '/'
%% /* The grammar follows. */
Note there are no declarations specific to locations. Defining a data
type for storing locations is not needed: we will use the type provided
by default (see section Data Types of Locations), which is a
four member structure with the following integer fields: