diff options
author | Adrian Thurston <thurston@complang.org> | 2012-05-20 16:10:31 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-05-20 16:10:31 -0400 |
commit | 600af732eb8d0e655ad2a2a450e998106ffab0c6 (patch) | |
tree | 5656ded8301013a7f6a3da484ce881f350404146 /colm/pdarun.h | |
parent | b5bedab8125194f9c359c29ad50b51799d932a56 (diff) | |
download | colm-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/pdarun.h')
-rw-r--r-- | colm/pdarun.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/colm/pdarun.h b/colm/pdarun.h index 263f9deb..236f8793 100644 --- a/colm/pdarun.h +++ b/colm/pdarun.h @@ -150,7 +150,8 @@ typedef struct _PatReplNode long bindId; const char *data; long length; - long ignore; + long leftIgnore; + long rightIgnore; /* Just match nonterminal, don't go inside. */ unsigned char stop; |