mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
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.
This commit is contained in:
3
NEWS
3
NEWS
@@ -101,6 +101,9 @@ GNU Bison NEWS
|
||||
There are now two examples in examples/java: a very simple calculator, and
|
||||
one that tracks locations to provide acurate error messages.
|
||||
|
||||
The lexcalc example (a simple example in C based on Flex and Bison) now
|
||||
also demonstrates location tracking.
|
||||
|
||||
A new C example, bistromathic, is a fully featured calculator using many
|
||||
Bison features: pure interface, location tracking, internationalized
|
||||
custom error messages, lookahead-correction, rich debug traces, etc.
|
||||
|
||||
Reference in New Issue
Block a user