diff options
author | Adrian Thurston <thurston@complang.org> | 2011-08-07 17:14:22 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2011-08-07 17:14:22 +0000 |
commit | 426aa99b90ba9a523772d329c2fb51af65663ed6 (patch) | |
tree | 2ce7890f6812649da325f626dac4f182c3e065c8 | |
parent | 825fdd43459efb37585b813d5150632dcbe67147 (diff) | |
download | colm-426aa99b90ba9a523772d329c2fb51af65663ed6.tar.gz |
Need to consider machines with eof references when deciding if
anyLmSwitchError. refs #310 refs #316.
-rw-r--r-- | colm/redfsm.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/colm/redfsm.cc b/colm/redfsm.cc index d1510fec..eec688ba 100644 --- a/colm/redfsm.cc +++ b/colm/redfsm.cc @@ -773,7 +773,7 @@ void RedFsm::analyzeAction( GenAction *act, InlineList *inlineList ) for ( InlineList::Iter item = *inlineList; item.lte(); item++ ) { /* Check for various things in regular actions. */ if ( act->numTransRefs > 0 || act->numToStateRefs > 0 || - act->numFromStateRefs > 0 ) + act->numFromStateRefs > 0 || act->numEofRefs > 0 ) { if ( item->type == InlineItem::LmSwitch && item->tokenRegion->lmSwitchHandlesError ) |