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:
Akim Demaille
2022-01-15 10:28:16 +01:00
parent a475c4d5c1
commit 6ee1494d6e
4 changed files with 79 additions and 5 deletions

View File

@@ -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