mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
doc: explain why location's "column" are defined vaguely
Suuggested by Frank Heckenbach. <https://lists.gnu.org/r/bug-bison/2022-01/msg00000.html> * doc/bison.texi (Location Type): Explain why location's "column" are defined vaguely. Show tab handling in ltcalc and calc++. * examples/c/bistromathic/parse.y: Show tab handling. * examples/c++/calc++/calc++.test, * examples/c/bistromathic/bistromathic.test: Check tab handling.
This commit is contained in:
@@ -50,6 +50,21 @@ EOF
|
||||
run 1 'err: -:2.1: syntax error, unexpected end of file, expecting ( or identifier or number'
|
||||
|
||||
|
||||
# Check handling of tabs.
|
||||
cat >input <<EOF
|
||||
*1
|
||||
EOF
|
||||
run 1 'err: -:1.9: syntax error, unexpected *, expecting ( or identifier or number'
|
||||
cat >input <<EOF
|
||||
*2
|
||||
EOF
|
||||
run 1 'err: -:1.9: syntax error, unexpected *, expecting ( or identifier or number'
|
||||
cat >input <<EOF
|
||||
*3
|
||||
EOF
|
||||
run 1 'err: -:1.9: syntax error, unexpected *, expecting ( or identifier or number'
|
||||
|
||||
|
||||
# LAC finds many more tokens.
|
||||
cat >input <<EOF
|
||||
a := 1
|
||||
|
||||
Reference in New Issue
Block a user