mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
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:
9
examples/calc++/compile
Executable file
9
examples/calc++/compile
Executable file
@@ -0,0 +1,9 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -ex
|
||||
BISON_PKGDATADIR=$HOME/src/bison/data
|
||||
export BISON_PKGDATADIR
|
||||
|
||||
flex -ocalc++-scanner.cc calc++-scanner.ll
|
||||
bison -o calc++-parser.cc calc++-parser.yy
|
||||
g++ -o calc++ calc++.cc calc++-driver.cc calc++-parser.cc calc++-scanner.cc
|
||||
Reference in New Issue
Block a user