examples: bistromathic: demonstrate error recovery

* examples/c/bistromathic/parse.y: here.
* examples/c/bistromathic/bistromathic.test: Check it.
Included a stupid case where the error is actually ignored.
This commit is contained in:
Akim Demaille
2020-04-25 15:03:01 +02:00
parent c90110efd3
commit 60366b152b
4 changed files with 21 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ push-parser model.
This example demonstrates best practices when using Bison.
- Its hand-written scanner tracks locations.
- Its interface is pure.
- It uses the `error` token to get error recovery.
- Its interface is "incremental", well suited for interaction: it uses the
push-parser API to feed the parser with the incoming tokens.
- It features an interactive command line with completion based on the