Start a set of simple examples.

* examples/calc++/Makefile, examples/calc++/calc++-driver.cc,
* examples/calc++/calc++-driver.hh,
* examples/calc++/calc++-parser.yy,
* examples/calc++/calc++-scanner.ll, examples/calc++/calc++.cc,
* examples/calc++/compile, examples/calc++/test: New.
This commit is contained in:
Akim Demaille
2005-06-22 15:32:10 +00:00
parent 0925ebb4fa
commit 0ffd4fd1a2
9 changed files with 292 additions and 1 deletions

15
examples/calc++/Makefile Normal file
View File

@@ -0,0 +1,15 @@
all: calc++
calc++:
flex -ocalc++-scanner.cc calc++-scanner.ll
bison -o calc++-parser.cc calc++-parser.yy
$(CC) -o calc++ calc++.cc calc++-driver.cc calc++-parser.cc calc++-scanner.cc
check: all
./test
clean:
rm -f *~ *.o *.tab.* input position.hh location.hh stack.hh \
calc++-parser.cc calc++-parser.hh \
calc++-scanner.cc \
calc++