diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-21 06:53:46 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-21 06:53:46 (GMT) |
commit | 1c2472067c3843342f56b5833c284106ab349417 (patch) | |
tree | fd6f914e8cf19337a14b9663b6bda4a6642b8a70 /openscad.cc | |
parent | e416017c5e0ef689e9fbc43b520632cde7927c26 (diff) |
Clifford Wolf:
Improved backend data structures
Added dump feature to backend data
git-svn-id: http://svn.clifford.at/openscad/trunk@4 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.cc')
-rw-r--r-- | openscad.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/openscad.cc b/openscad.cc index f824c32..cec520a 100644 --- a/openscad.cc +++ b/openscad.cc @@ -20,9 +20,6 @@ #include "openscad.h" -extern int parserdebug; -int parserparse(void); - int main() { int rc = 0; @@ -34,8 +31,10 @@ int main() ctx.functions_p = &builtin_functions; ctx.modules_p = &builtin_modules; - // parserdebug = 1; - rc = parserparse(); + AbstractModule *root_module = parse(stdin, 0); + QString text = root_module->dump("", "*"); + printf("%s", text.toAscii().data()); + delete root_module; destroy_builtin_functions(); destroy_builtin_modules(); |