mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
examples: use markdown hyperlinks
* examples/c++/README.md, examples/c++/calc++/README.md, * examples/c/README.md: here.
This commit is contained in:
@@ -13,8 +13,8 @@ semantic value.
|
|||||||
|
|
||||||
Run as `./simple`.
|
Run as `./simple`.
|
||||||
|
|
||||||
Extracted from the documentation: "A Simple C++ Example".
|
Extracted from the documentation: [A Simple C++
|
||||||
https://www.gnu.org/software/bison/manual/html_node/A-Simple-C_002b_002b-Example.html
|
Example](https://www.gnu.org/software/bison/manual/html_node/A-Simple-C_002b_002b-Example.html).
|
||||||
|
|
||||||
## variant.yy - Self-contained example in C++98
|
## variant.yy - Self-contained example in C++98
|
||||||
A variation of simple.yy, in C++98.
|
A variation of simple.yy, in C++98.
|
||||||
@@ -36,8 +36,8 @@ starting point for a clean parser in C++. The previous examples are better
|
|||||||
introductory examples, and the C examples are also useful introductory
|
introductory examples, and the C examples are also useful introductory
|
||||||
examples.
|
examples.
|
||||||
|
|
||||||
Extracted from the documentation: "A Complete C++ Example".
|
Extracted from the documentation: [A Complete C++
|
||||||
https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html
|
Example](https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html).
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ saw the traditional implementation in C, please first read
|
|||||||
examples/c/lexcalc, which can be seen as a C precursor of this example.
|
examples/c/lexcalc, which can be seen as a C precursor of this example.
|
||||||
|
|
||||||
Read the corresponding chapter in the documentation: "A Complete C++
|
Read the corresponding chapter in the documentation: "A Complete C++
|
||||||
Example". It is also available on line (maybe with a different version of
|
Example". It is also available [on
|
||||||
Bison):
|
line](https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html)
|
||||||
https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html
|
(maybe with a different version of Bison).
|
||||||
|
|
||||||
To use it, copy this directory into some work directory, and run `make` to
|
To use it, copy this directory into some work directory, and run `make` to
|
||||||
compile the executable, and try it. It is a simple calculator which accepts
|
compile the executable, and try it. It is a simple calculator which accepts
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ The first example is that of a simple double-precision Reverse Polish
|
|||||||
Notation calculator (a calculator using postfix operators). This example
|
Notation calculator (a calculator using postfix operators). This example
|
||||||
provides a good starting point, since operator precedence is not an issue.
|
provides a good starting point, since operator precedence is not an issue.
|
||||||
|
|
||||||
Extracted from the documentation: "Reverse Polish Notation Calculator"
|
Extracted from the documentation: [Reverse Polish Notation
|
||||||
https://www.gnu.org/software/bison/manual/html_node/RPN-Calc.html
|
Calculator](https://www.gnu.org/software/bison/manual/html_node/RPN-Calc.html).
|
||||||
|
|
||||||
## calc - Simple Calculator
|
## calc - Simple Calculator
|
||||||
This example is slightly more complex than rpcalc: it features infix
|
This example is slightly more complex than rpcalc: it features infix
|
||||||
@@ -24,8 +24,8 @@ A more complete C example: a multi-function calculator. More complex than
|
|||||||
the previous example. Using precedence directives to support infix
|
the previous example. Using precedence directives to support infix
|
||||||
operators.
|
operators.
|
||||||
|
|
||||||
Extracted from the documentation: "Multi-Function Calculator: mfcalc".
|
Extracted from the documentation: [Multi-Function Calculator:
|
||||||
https://www.gnu.org/software/bison/manual/html_node/Multi_002dfunction-Calc.html
|
mfcalc](https://www.gnu.org/software/bison/manual/html_node/Multi_002dfunction-Calc.html).
|
||||||
|
|
||||||
## lexcalc - calculator with Flex and Bison
|
## lexcalc - calculator with Flex and Bison
|
||||||
The calculator with precedence directives and location tracking. It uses
|
The calculator with precedence directives and location tracking. It uses
|
||||||
|
|||||||
Reference in New Issue
Block a user