RPA Toolkit
Work on the astnode and astval...continued, added rast-test
authorMartin Stoilov <martin@rpasearch.com>
Fri, 4 Feb 2011 04:32:25 +0000 (20:32 -0800)
committerMartin Stoilov <martin@rpasearch.com>
Fri, 4 Feb 2011 04:32:25 +0000 (20:32 -0800)
tests/rast-test.c

index 03db075..e1a9fa6 100644 (file)
@@ -124,9 +124,12 @@ inline int r_astcompiler_notify(rpa_stat_handle stat, const char *name, void *us
                r_astcompiler_dumpnotification(stat, name, userdata, input, size, reason);
 
        if (reason & RPA_REASON_START) {
-
+               rastnode_t *node = r_astnode_create();
+               r_gc_add(aco->gc, (robject_t*)node);
+               node->parent = aco->root;
        } else if (reason & RPA_REASON_MATCHED) {
 
+
        } else {
 
        }