2886 |
|
|
2887 |
@example |
@example |
2888 |
@group |
@group |
2889 |
#define YYLLOC_DEFAULT(Current, Rhs, N) \ |
#define YYLLOC_DEFAULT(Current, Rhs, N) \ |
2890 |
Current.last_line = Rhs[N].last_line; \ |
Current.first_line = Rhs[1].first_line; \ |
2891 |
Current.last_column = Rhs[N].last_column; |
Current.first_column = Rhs[1].first_column; \ |
2892 |
|
Current.last_line = Rhs[N].last_line; \ |
2893 |
|
Current.last_column = Rhs[N].last_column; |
2894 |
@end group |
@end group |
2895 |
@end example |
@end example |
2896 |
|
|
2902 |
result) should be modified by @code{YYLLOC_DEFAULT}. |
result) should be modified by @code{YYLLOC_DEFAULT}. |
2903 |
|
|
2904 |
@item |
@item |
2905 |
Before @code{YYLLOC_DEFAULT} is executed, the output parser sets @code{@@$} |
For consistency with semantic actions, valid indexes for the location |
2906 |
to @code{@@1}. |
array range from 1 to @var{n}. |
|
|
|
|
@item |
|
|
For consistency with semantic actions, valid indexes for the location array |
|
|
range from 1 to @var{n}. |
|
2907 |
@end itemize |
@end itemize |
2908 |
|
|
2909 |
@node Declarations |
@node Declarations |