summaryrefslogtreecommitdiff
path: root/colm/tree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-05-02 22:14:30 -0400
committerAdrian Thurston <thurston@complang.org>2012-05-04 22:09:00 -0400
commitf370c2102bc0e01b316e971069e1b1af946b8262 (patch)
tree070d6bee8b8e5c640c2c73ad8af7d67200944871 /colm/tree.h
parent07a25c1523caed17bc26a586ffe85e785393f23e (diff)
downloadcolm-f370c2102bc0e01b316e971069e1b1af946b8262.tar.gz
Testing out a shadow tree.
The existing parse tree retains current functionality. It contains the shadow, which is the data tree and will be exported by the parse. Testing method: when the tree is submitted for parsing a copy into the shadow is done. When shifting and reducing we need to manage the shadow tree's pointers. Basics works. No ignore tokens.
Diffstat (limited to 'colm/tree.h')
-rw-r--r--colm/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/colm/tree.h b/colm/tree.h
index b4e5eb19..ece3845d 100644
--- a/colm/tree.h
+++ b/colm/tree.h
@@ -123,6 +123,8 @@ typedef struct _ParseTree
/* FIXME: unify probably. */
char retryLower;
char retryUpper;
+
+ Kid *shadow;
} ParseTree;
typedef struct _Int