examples: add a simple infix calculator in C

Currently we have no simple example: rpcalc in reverse Polish, mfcalc
has functions, and lexcalc is using lex.

* examples/c/calc/Makefile, examples/c/calc/calc.y,
* examples/c/calc/calc.test, examples/c/calc/local.mk: New.
This commit is contained in:
Akim Demaille
2019-02-10 14:32:16 +01:00
parent 30f61b0549
commit 40fc688765
10 changed files with 250 additions and 5 deletions

8
TODO
View File

@@ -1,4 +1,12 @@
* Bison 3.4
** doc
I feel its ugly to use the GNU style to declare functions in the doc. It
generates tons of white space in the page, and may contribute to bad page
breaks.
Also, we seem to teach YYPRINT very early on, although it should be
considered deprecated: %printer is superior.
** injection rules
** glr.cc
move glr.c into the yy namespace