summaryrefslogtreecommitdiff
path: root/colm/tree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-05-20 16:10:31 -0400
committerAdrian Thurston <thurston@complang.org>2012-05-20 16:10:31 -0400
commit600af732eb8d0e655ad2a2a450e998106ffab0c6 (patch)
tree5656ded8301013a7f6a3da484ce881f350404146 /colm/tree.h
parentb5bedab8125194f9c359c29ad50b51799d932a56 (diff)
downloadcolm-600af732eb8d0e655ad2a2a450e998106ffab0c6.tar.gz
first checkin on no-kid-flags and no-ignore-dupes branch
Trying out an elimination of the kid flags and the duplicate ignore tokens. The kid flags waste a lot of space. There is also a bug WRT iterators. Some kids in the ref chain are actually on the stack only the tree is safe to edit because the stack variables are not full kids. The duplicate ignores causes a complicated implementation in the print function. It may actually be unneeded now that we have follow ignores. We can also provide some control over where the ignore tokens go, to the right of the left token or to the left of the right token.
Diffstat (limited to 'colm/tree.h')
-rw-r--r--colm/tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/colm/tree.h b/colm/tree.h
index 9d6b0b21..e3fed750 100644
--- a/colm/tree.h
+++ b/colm/tree.h
@@ -110,7 +110,8 @@ typedef struct _ParseTree
struct _ParseTree *child;
struct _ParseTree *next;
- struct _ParseTree *ignore;
+ struct _ParseTree *leftIgnore;
+ struct _ParseTree *rightIgnore;
Kid *shadow;
/* Parsing algorithm. */