diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-12-11 10:01:52 -0700 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-11 10:01:52 -0700 |
| commit | 4d5d24f1da11a1279da0b5ea9351c4372a74bc43 (patch) | |
| tree | 90e2e93ee24518fc098b0109871f83fbd07ac392 /default.bld | |
| download | stage-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.bld | 24 |
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 | |||
| 2 | CC="g++"; | ||
| 3 | target "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 | /* | ||
| 13 | rule "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 | */ | ||
