Files
bison/examples/c/bistromathic
Akim Demaille 388e12ac0f examples: lexcalc: demonstrate location tracking
The bistromathic example should not use Flex, it makes it too complex.
But it was the only example to show location tracking with Flex.

* examples/c/lexcalc/lexcalc.test, examples/c/lexcalc/parse.y,
* examples/c/lexcalc/scan.l: Demonstrate location tracking as is done
in bistromathic.
2020-02-29 12:15:19 +01:00
..

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 supports debug traces with semantic values.
  • It uses named references instead of the traditional $1, $2, etc.

It also uses Flex to generate the scanner.