summaryrefslogtreecommitdiff
path: root/colm/pdarun.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-05-19 20:52:39 -0400
committerAdrian Thurston <thurston@complang.org>2012-05-19 20:52:39 -0400
commitdc08219de754c1a277df2dbcad4c0493ee355de7 (patch)
tree6b139bb077c0c7de8fcf69815a0827c30b9a7fe1 /colm/pdarun.h
parentc1e506cd13ef8b3607bc7984afeba7f37d2c49c0 (diff)
downloadcolm-dc08219de754c1a277df2dbcad4c0493ee355de7.tar.gz
pre-regions, towards follow ignores
Collect and emit preRegionInds. These are pointers to region lists for a state. May use them to scan ignores ahead of the next region.
Diffstat (limited to 'colm/pdarun.h')
-rw-r--r--colm/pdarun.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/colm/pdarun.h b/colm/pdarun.h
index f14e5f21..a15634f5 100644
--- a/colm/pdarun.h
+++ b/colm/pdarun.h
@@ -76,7 +76,8 @@ typedef struct _FsmRun
RunBuf *runBuf;
/* FsmRun State. */
- long region, cs, act;
+ long region, preRegion;
+ long cs, act;
char *tokstart, *tokend;
char *p, *pe, *peof;
int returnResult;
@@ -237,6 +238,7 @@ typedef struct _PdaTables
unsigned int *actions;
int *commitLen;
int *tokenRegionInds;
+ int *tokenPreRegionInds;
int *tokenRegions;
int numIndicies;