bistromathic: demonstrate caret-diagnostics

* examples/c/bistromathic/parse.y (user_context): We need the current
line.
(yyreport_syntax_error): Quote the guilty line, with squiggles.
* examples/c/bistromathic/bistromathic.test: Adjust.
This commit is contained in:
Akim Demaille
2020-07-11 14:30:15 +02:00
parent c47e1174d4
commit dc72b3566d
6 changed files with 86 additions and 13 deletions

2
TODO
View File

@@ -36,8 +36,6 @@ Unless we play it dumb (little structure).
- How about not evaluating incomplete lines when the text is not finished
(as shells do).
- Caret diagnostics
** Questions
*** Java
- Should i18n be part of the Lexer? Currently it's a static method of