diff options
author | Adrian Thurston <thurston@complang.org> | 2012-01-13 07:21:19 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-01-13 07:21:19 +0000 |
commit | fc79fba65830de8e6dbba647256e449e1acf5457 (patch) | |
tree | dfed6842203c2854023637c6b347cf7496a5ab03 | |
parent | bb536dca6d4fd4c0e101107912c1fa928b3899f2 (diff) | |
download | colm-fc79fba65830de8e6dbba647256e449e1acf5457.tar.gz |
Need to call makeReverse code after a PcrPreEof break.
-rw-r--r-- | colm/pdarun.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/colm/pdarun.c b/colm/pdarun.c index 08816809..18ae9d4f 100644 --- a/colm/pdarun.c +++ b/colm/pdarun.c @@ -809,10 +809,6 @@ Kid *sendEof( Program *prg, Tree **sp, InputStream *inputStream, FsmRun *fsmRun, return input; } -void preEofBlock( Program *prg, Tree **sp, InputStream *inputStream, FsmRun *fsmRun, PdaRun *pdaRun, int tokenId ) -{ -} - void newToken( Program *prg, PdaRun *pdaRun, FsmRun *fsmRun ) { /* Init the scanner vars. */ @@ -1060,12 +1056,7 @@ case PcrStart: return PcrPreEof; case PcrPreEof: - {} - - /* - * Need a no-token. - */ - //addNoToken( prg, sp, fsmRun, pdaRun, inputStream, pdaRun->frameId, pdaRun->tokenId, 0 ); + makeReverseCode( pdaRun ); } } else if ( pdaRun->tokenId == SCAN_UNDO ) { @@ -1139,12 +1130,6 @@ case PcrPreEof: return PcrGeneration; case PcrGeneration: - /* - * May need a no-token. - */ - //addNoToken( prg, sp, fsmRun, pdaRun, inputStream, - // prg->rtd->lelInfo[pdaRun->tokenId].frameId, pdaRun->tokenId, pdaRun->tokdata ); - makeReverseCode( pdaRun ); /* Finished with the match text. */ |