diff options
Diffstat (limited to 'colm/fsmrun.cpp')
-rw-r--r-- | colm/fsmrun.cpp | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/colm/fsmrun.cpp b/colm/fsmrun.cpp index f5968585..c9402645 100644 --- a/colm/fsmrun.cpp +++ b/colm/fsmrun.cpp @@ -585,13 +585,6 @@ void send_handle_error( FsmRun *fsmRun, PdaRun *parser, Kid *input ) parser->stopParsing = true; } } - - #ifdef COLM_LOG_PARSE - if ( colm_log_parse ) { - cerr << "new token region: " << - parser->tables->rtd->regionInfo[fsmRun->region].name << endl; - } - #endif } void PdaRun::ignore( Tree *tree ) @@ -808,12 +801,6 @@ void scanner_error( FsmRun *fsmRun, PdaRun *parser ) parser->sendBackIgnore(); parser->nextRegionInd += 1; - #ifdef COLM_LOG_PARSE - if ( colm_log_parse ) { - cerr << "new token region: " << - parser->tables->rtd->regionInfo[fsmRun->region].name << endl; - } - #endif return; } @@ -833,12 +820,6 @@ void scanner_error( FsmRun *fsmRun, PdaRun *parser ) cerr << "PARSE ERROR" << endp; } else { - #ifdef COLM_LOG_PARSE - if ( colm_log_parse ) { - cerr << "new token region: " << - parser->tables->rtd->regionInfo[fsmRun->region].name << endl; - } - #endif return; } } @@ -909,6 +890,13 @@ long FsmRun::scanToken( PdaRun *parser ) region = parser->getNextRegion(); cs = tables->entryByRegion[region]; + #ifdef COLM_LOG_PARSE + if ( colm_log_parse ) { + cerr << "scanning using token region: " << + parser->tables->rtd->regionInfo[fsmRun->region].name << endl; + } + #endif + /* Clear the mark array. */ memset( mark, 0, sizeof(mark) ); |