diff options
author | Adrian Thurston <thurston@complang.org> | 2015-11-30 16:26:39 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-11-30 16:26:39 -0500 |
commit | 5e75abcbc165994b9c28fe98c1944da4ce31a7cb (patch) | |
tree | ef1fc4a4c275b4fe01a3458c5b4da2e348a42940 /src/colm.h | |
parent | dd66b443403b72ef2e2a076db471d6d819d95e05 (diff) | |
download | colm-5e75abcbc165994b9c28fe98c1944da4ce31a7cb.tar.gz |
allow omission of location in reductions
There is code in here for omission of location and data in reductions.
Unfortunately we cannot enable the omission of data unless we make changes to
the backtracking. In the current implementation we push the token data with an
mcopy from the data in the token.
Diffstat (limited to 'src/colm.h')
-rw-r--r-- | src/colm.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -77,6 +77,11 @@ struct colm_location *colm_find_location( struct colm_program *prg, struct colm_ #define COLM_DBG_INPUT 0x00000040 #define COLM_DBG_SCAN 0x00000080 +#define COLM_RN_NEITHER 0x00 +#define COLM_RN_DATA 0x01 +#define COLM_RN_LOC 0x02 +#define COLM_RN_BOTH 0x03 + /* * Primary Interface. */ |