mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
Convert some of the READMEs to Markdown, which is now more common, and nicely displayed in some git hosting services. Add missing READMEs and Makefiles. Generate XML, HTML and Dot files. Be sure to ship the test files. Complete CLEANFILES to remove all generated files. * examples/calc++: Move into... * examples/c++: here. * examples/mfcalc, examples/rpcalc: Move into... * examples/c: here. * examples/README.md, examples/c++/calc++/Makefile, examples/c/local.mk, * examples/c/mfcalc/Makefile, examples/c/rpcalc/Makefile, * examples/d/README.md, examples/java/README.md: New files. * examples/test (medir): Be robust to deeper directory nesting.
39 lines
1.4 KiB
Markdown
39 lines
1.4 KiB
Markdown
This directory contains examples of Bison grammar files.
|
|
|
|
Most of them come from the documentation, which should be installed together
|
|
with Bison. The URLs are provided for convenience.
|
|
|
|
# rpcalc - Reverse Polish Notation Calculator
|
|
The first example is that of a simple double-precision Reverse Polish
|
|
Notation calculator (a calculator using postfix operators). This example
|
|
provides a good starting point, since operator precedence is not an issue.
|
|
|
|
Extracted from the documentation: "Reverse Polish Notation Calculator"
|
|
https://www.gnu.org/software/bison/manual/html_node/RPN-Calc.html
|
|
|
|
# mfcalc - Multi-Function Calculator
|
|
A more complete C example: a multi-function calculator.
|
|
|
|
Extracted from the documentation: "Multi-Function Calculator: mfcalc".
|
|
https://www.gnu.org/software/bison/manual/html_node/Multi_002dfunction-Calc.html
|
|
|
|
|
|
<!---
|
|
|
|
Local Variables:
|
|
fill-column: 76
|
|
ispell-dictionary: "american"
|
|
End:
|
|
|
|
Copyright (C) 2018 Free Software Foundation, Inc.
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
|
any later version published by the Free Software Foundation; with no
|
|
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
|
|
--->
|