]> git.mdlowis.com Git - proto/sclpl.git/commitdiff
updated parser to use garbage collector
authorMike D. Lowis <mike@mdlowis.com>
Fri, 22 Feb 2013 18:20:04 +0000 (13:20 -0500)
committerMike D. Lowis <mike@mdlowis.com>
Fri, 22 Feb 2013 18:20:04 +0000 (13:20 -0500)
premake4.lua
source/parser/main.c

index f078ed1be51ac67f697c1f17bec15e8a4c9d1c0a..720f70dcff127a80e6e0819b03a2119da1ab678f 100644 (file)
@@ -49,7 +49,8 @@ project "sclpl-parse"
     kind "ConsoleApp"
     language "C"
     location "build"
-    files { "source/parser/**.*" }
+    includedirs { "source/lexer/**", "source/runtime/**" }
+    files { "source/parser/**.*", "source/runtime/collector/**.*"}
 
 project "sclpl-parse-tests"
     kind "ConsoleApp"
index 7a7c3806f2187ce404c3048f2fc89ec82ed26225..07b88a145466db1300951c14d63cefe3357e3723 100644 (file)
@@ -1,6 +1,16 @@
+#include "gc.h"
 
 int main(int argc, char** argv)
 {
+    /* init the collector */
+    int foo;
+    gc_set_stack_base(&foo);
+
+    /* main program */
+
+
+    /* shutdown the collector */
+    gc_shutdown();
     return 0;
 }