out << "\n";
- if ( hasEnd ) {
+ if ( !noEnd ) {
testEofUsed = true;
out <<
" if ( " << P() << " == " << PE() << " )\n"
if ( redFsm->errState != 0 ) {
outLabelUsed = true;
out <<
- " if ( " << CS() << " == " << redFsm->errState->id << " )\n"
+ " if ( " << vCS() << " == " << redFsm->errState->id << " )\n"
" goto _out;\n";
}
if ( redFsm->anyFromStateActions() ) {
out <<
- " switch ( " << FSA() << "[" << CS() << "] ) {\n";
+ " switch ( " << FSA() << "[" << vCS() << "] ) {\n";
FROM_STATE_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n"
out << "_eof_trans:\n";
if ( redFsm->anyRegCurStateRef() )
- out << " _ps = " << CS() << ";\n";
+ out << " _ps = " << vCS() << ";\n";
out <<
- " " << CS() << " = " << TT() << "[_trans];\n"
+ " " << vCS() << " = " << TT() << "[_trans];\n"
"\n";
if ( redFsm->anyRegActions() ) {
if ( redFsm->anyToStateActions() ) {
out <<
- " switch ( " << TSA() << "[" << CS() << "] ) {\n";
+ " switch ( " << TSA() << "[" << vCS() << "] ) {\n";
TO_STATE_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n"
if ( redFsm->errState != 0 ) {
outLabelUsed = true;
out <<
- " if ( " << CS() << " == " << redFsm->errState->id << " )\n"
+ " if ( " << vCS() << " == " << redFsm->errState->id << " )\n"
" goto _out;\n";
}
- if ( hasEnd ) {
+ if ( !noEnd ) {
out <<
" if ( ++" << P() << " != " << PE() << " )\n"
" goto _resume;\n";
if ( redFsm->anyEofTrans() || redFsm->anyEofActions() ) {
out <<
- " if ( " << P() << " == " << EOFV() << " )\n"
+ " if ( " << P() << " == " << vEOF() << " )\n"
" {\n";
if ( redFsm->anyEofTrans() ) {
out <<
- " if ( " << ET() << "[" << CS() << "] > 0 ) {\n"
- " _trans = " << ET() << "[" << CS() << "] - 1;\n"
+ " if ( " << ET() << "[" << vCS() << "] > 0 ) {\n"
+ " _trans = " << ET() << "[" << vCS() << "] - 1;\n"
" goto _eof_trans;\n"
" }\n";
}
if ( redFsm->anyEofActions() ) {
out <<
- " switch ( " << EA() << "[" << CS() << "] ) {\n";
+ " switch ( " << EA() << "[" << vCS() << "] ) {\n";
EOF_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n";