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

@@ -218,7 +218,7 @@ AT_SETUP([Torturing the Scanner])
AT_DATA([input.y], [])
AT_CHECK([bison input.y], [1], [],
[[input.y:1.0: syntax error, unexpected end of file
[[input.y:1.1: syntax error, unexpected end of file
]])
@@ -226,7 +226,7 @@ AT_DATA([input.y],
[{}
])
AT_CHECK([bison input.y], [1], [],
[[input.y:1.0-1: syntax error, unexpected {...}
[[input.y:1.1-2: syntax error, unexpected {...}
]])