diff options
author | Adrian Thurston <thurston@complang.org> | 2012-05-02 22:14:30 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-05-04 22:09:00 -0400 |
commit | f370c2102bc0e01b316e971069e1b1af946b8262 (patch) | |
tree | 070d6bee8b8e5c640c2c73ad8af7d67200944871 /colm/tree.h | |
parent | 07a25c1523caed17bc26a586ffe85e785393f23e (diff) | |
download | colm-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.h | 2 |
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 |