mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
examples: add a complete example with all the bells and whistles
* examples/c/bistromathic/Makefile, * examples/c/bistromathic/README.md, * examples/c/bistromathic/bistromathic.test, * examples/c/bistromathic/local.mk, * examples/c/bistromathic/parse.y, * examples/c/bistromathic/scan.l: New. * Makefile.am (AM_YFLAGS_WITH_LINES): Add -Wdangling-alias. * examples/test: Make failure errors easier to read.
This commit is contained in:
@@ -48,6 +48,14 @@ until the input is drained.
|
||||
This example is a straightforward conversion of the 'calc' example to the
|
||||
push-parser model.
|
||||
|
||||
## bistromathic - all the bells and whistles
|
||||
This example demonstrates the best practices when using Bison.
|
||||
- Its interface is pure.
|
||||
- It uses a custom syntax error with location tracking, lookahead correction
|
||||
and token internationalization.
|
||||
- It enables debug trace support with formatting of semantic values.
|
||||
|
||||
It also uses Flex to generate the scanner.
|
||||
|
||||
<!---
|
||||
|
||||
@@ -65,6 +73,8 @@ Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
|
||||
Texts. A copy of the license is included in the "GNU Free
|
||||
Documentation License" file as part of this distribution.
|
||||
|
||||
# LocalWords: mfcalc calc parsers yy rpcalc lexcalc redux reccalc ispell
|
||||
# LocalWords: reentrant tokenized american postfix
|
||||
--->
|
||||
LocalWords: mfcalc calc parsers yy rpcalc lexcalc redux reccalc ispell
|
||||
LocalWords: reentrant tokenized american postfix pushcalc bistromathic
|
||||
LocalWords: lookahead
|
||||
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user