summaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-11 10:01:52 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-11 10:01:52 -0700
commit4d5d24f1da11a1279da0b5ea9351c4372a74bc43 (patch)
tree90e2e93ee24518fc098b0109871f83fbd07ac392 /default.bld
downloadstage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.tar.gz
stage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.tar.bz2
stage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.tar.xz
stage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.zip
Basic parser coming together.
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld24
1 files changed, 24 insertions, 0 deletions
diff --git a/default.bld b/default.bld
new file mode 100644
index 0000000..296453f
--- /dev/null
+++ b/default.bld
@@ -0,0 +1,24 @@
1
2CC="g++";
3target "stage"
4{
5 rule "exe";
6 input files("src/*.y", "src/*.l", "src/*.cpp");
7
8 FLEXFLAGS="-osrc/parser.yy.c";
9 BISONFLAGS="-d";
10}
11
12/*
13rule "bison"
14{
15 input "*.y";
16 output [INPUT.regex("\\.y$", ".tab.c"), INPUT.regex("\\.y$", ".tab.h")];
17 profile "build"
18 {
19 DIR=INPUT.dirName();
20 FILE=INPUT.fileName();
21 execute("cd ${DIR}; bison -d ${FILE}");
22 }
23}
24*/