In the grammar file, the first column is 1 not 0 on the first line as

on every other line.
* src/parse-gram.y (%initial-action): Initialize @$ correctly.
* tests/input.at (Torturing the Scanner): Update output.

* src/scan-gram.l (scanner_cursor): Declare it static.
This commit is contained in:
Joel E. Denny
2006-07-08 00:02:04 +00:00
parent dd60572a8b
commit 4a678af8c6
5 changed files with 16 additions and 7 deletions

View File

@@ -54,7 +54,7 @@
code_start = scanner_cursor = loc->start; \
/* Location of scanner cursor. */
boundary scanner_cursor;
static boundary scanner_cursor;
#define YY_USER_ACTION location_compute (loc, &scanner_cursor, yytext, yyleng);