465 |
#define YYERRCODE 256 |
#define YYERRCODE 256 |
466 |
|
|
467 |
/* YYLLOC_DEFAULT -- Compute the default location (before the actions |
/* YYLLOC_DEFAULT -- Compute the default location (before the actions |
468 |
are run). |
are run). */ |
|
|
|
|
When YYLLOC_DEFAULT is run, CURRENT is set the location of the |
|
|
first token. By default, to implement support for ranges, extend |
|
|
its range to the last symbol. */ |
|
469 |
|
|
470 |
#ifndef YYLLOC_DEFAULT |
#ifndef YYLLOC_DEFAULT |
471 |
# define YYLLOC_DEFAULT(Current, Rhs, N) \ |
# define YYLLOC_DEFAULT(Current, Rhs, N) \ |
472 |
Current.last_line = Rhs[[N]].last_line; \ |
Current.first_line = Rhs[[1]].first_line; \ |
473 |
Current.last_column = Rhs[[N]].last_column; |
Current.first_column = Rhs[[1]].first_column; \ |
474 |
|
Current.last_line = Rhs[[N]].last_line; \ |
475 |
|
Current.last_column = Rhs[[N]].last_column; |
476 |
#endif |
#endif |
477 |
|
|
478 |
/* YYLEX -- calling `yylex' with the right arguments. */ |
/* YYLEX -- calling `yylex' with the right arguments. */ |
954 |
yyval = yyvsp[1-yylen]; |
yyval = yyvsp[1-yylen]; |
955 |
|
|
956 |
#if YYLSP_NEEDED |
#if YYLSP_NEEDED |
957 |
/* Similarly for the default location. Let the user run additional |
/* Default location. */ |
|
commands if for instance locations are ranges. */ |
|
|
yyloc = yylsp[1-yylen]; |
|
958 |
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); |
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); |
959 |
#endif |
#endif |
960 |
|
|