examples: bistromathic: fix location tracking

* examples/c/bistromathic/scan.l (LOCATION_STEP): New.
Use to properly ignore blanks.
* examples/c/bistromathic/bistromathic.test: Check that case.
This commit is contained in:
Akim Demaille
2020-02-02 08:59:54 +01:00
parent 23ba9e5dfa
commit 493359b758
2 changed files with 14 additions and 3 deletions

View File

@@ -46,3 +46,8 @@ cat >input <<EOF
*
EOF
run 0 "err: 1.1: syntax error expected end of file or - or ( or end of line or double precision number or function or variable before *"
cat >input <<EOF
1 + 2 * * 3
EOF
run 0 "err: 1.9: syntax error expected - or ( or double precision number or function or variable before *"