diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-20 19:00:19 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-20 19:00:19 (GMT) |
commit | e416017c5e0ef689e9fbc43b520632cde7927c26 (patch) | |
tree | ff027e61646404db33fde1a4dc245a870fd56722 /openscad.cc | |
parent | e80db13e335ccef3e93016a84b9aab1883828bda (diff) |
Clifford Wolf:
Added fundamential backend data structures
(it is all still untested)
git-svn-id: http://svn.clifford.at/openscad/trunk@3 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.cc')
-rw-r--r-- | openscad.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/openscad.cc b/openscad.cc index f312285..f824c32 100644 --- a/openscad.cc +++ b/openscad.cc @@ -18,12 +18,28 @@ * */ +#include "openscad.h" + extern int parserdebug; int parserparse(void); int main() { + int rc = 0; + + initialize_builtin_functions(); + initialize_builtin_modules(); + + Context ctx(NULL); + ctx.functions_p = &builtin_functions; + ctx.modules_p = &builtin_modules; + // parserdebug = 1; - return parserparse(); + rc = parserparse(); + + destroy_builtin_functions(); + destroy_builtin_modules(); + + return rc; } |