README 414 Bytes
Newer Older
1 2 3 4
This tiny program reads arithmetic expressions from the standard input
channel. Each expression is expected to be complete when the current line
ends. Its value is then displayed on the standard output channel. This
code is adapted from ocamlyacc's documentation.
5 6

We compile the parser using Menhir's code back-end. For an example of using
POTTIER Francois's avatar
POTTIER Francois committed
7
Menhir's table back-end, see the calc-incremental/ and calc-inspection/.