From 8032dde38397c05777b45c5f3d41637724c7d599 Mon Sep 17 00:00:00 2001 From: Adela Vais Date: Wed, 2 Sep 2020 14:32:22 +0300 Subject: [PATCH] examples: d: duplicate the example as "simple" and "calc" * examples/d/Makefile, examples/d/calc.d, examples/d/calc.test, examples/d/calc/local.mk: Move into... * examples/d/calc, examples/d/simple: these new directories. --- examples/d/README.md | 5 +- examples/d/{ => calc}/Makefile | 0 examples/d/{ => calc}/calc.test | 0 examples/d/{ => calc}/calc.y | 0 examples/d/calc/local.mk | 36 ++++++++ examples/d/local.mk | 22 +---- examples/d/simple/Makefile | 25 +++++ examples/d/simple/calc.test | 36 ++++++++ examples/d/simple/calc.y | 156 ++++++++++++++++++++++++++++++++ examples/d/simple/local.mk | 36 ++++++++ 10 files changed, 296 insertions(+), 20 deletions(-) rename examples/d/{ => calc}/Makefile (100%) rename examples/d/{ => calc}/calc.test (100%) rename examples/d/{ => calc}/calc.y (100%) create mode 100644 examples/d/calc/local.mk create mode 100644 examples/d/simple/Makefile create mode 100644 examples/d/simple/calc.test create mode 100644 examples/d/simple/calc.y create mode 100644 examples/d/simple/local.mk diff --git a/examples/d/README.md b/examples/d/README.md index fe05ef27..86cb10a8 100644 --- a/examples/d/README.md +++ b/examples/d/README.md @@ -5,9 +5,12 @@ 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/calc.y +## d/simple.y The usual calculator. +## d/calc.y +A richer implementation of the calculator. +