Files
bison/examples/d
Adela Vais e5854bbddd d: change YYLocation's type from class to struct
This avoids heap allocation and gives minimal costs for the
creation and destruction of the YYParser.Symbol struct if
the location tracking is active.

Suggested by H. S. Teoh.

* data/skeletons/lalr1.d: Here.
* doc/bison.texi: Document it.
* examples/d/calc/calc.y: Adjust.
* tests/calc.at: Test it.
2020-11-20 22:09:31 +01:00
..

Examples in D

This directory contains examples of Bison grammar files in D.

You can run make to compile these examples. And make clean to tidy afterwards.

d/simple.y

The usual calculator.

d/calc.y

A richer implementation of the calculator, with location tracking.