aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index d7b6f33..7b39c8c 100755
--- a/build.sh
+++ b/build.sh
@@ -28,8 +28,7 @@ function leak
# cc clr-table "-D_CLR_TABLE_STANDALONE -D_LAZY_LALR"
# cc lr-parser -D_LR_PARSER_STANDALONE
# cc demos/instant-parser
-cc demos/generate-parser
-shared demos/sample-files/defs
+
# leak lexer
# leak recursive-ascent
@@ -39,4 +38,12 @@ shared demos/sample-files/defs
# leak clr-table
# leak lr-parser
# leak instant-parser
-leak "generate-parser bin/defs.so"
+
+#--------------------------------------------------------------------------------------------------#
+
+cc demos/generate-parser
+shared demos/sample-files/defs
+
+leak "generate-parser bin/defs.so" > bin/generated.c
+cc demos/sample-files/parser-skeleton # this includes bin/generated.c
+leak parser-skeleton