}
writeExec();
}
- else if ( strcmp( args[0], "eof" ) == 0 ) {
- for ( int i = 1; i < nargs; i++ ) {
- source_warning(loc) << "unrecognized write option \"" <<
- args[i] << "\"" << endl;
- }
- writeEOF();
- }
else if ( strcmp( args[0], "exports" ) == 0 ) {
for ( int i = 1; i < nargs; i++ ) {
source_warning(loc) << "unrecognized write option \"" <<
virtual void writeData() {};
virtual void writeInit() {};
virtual void writeExec() {};
- virtual void writeEOF() {};
virtual void writeExports() {};
/* This can also be overwridden to modify the processing of write
out << " }\n";
}
-
-void FFlatCodeGen::writeEOF()
-{
-}
virtual std::ostream &TRANS_ACTION( RedTransAp *trans );
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
};
out << " }\n";
}
-
-void FGotoCodeGen::writeEOF()
-{
-}
unsigned int EOF_ACTION( RedStateAp *state );
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
};
out << " }\n";
}
-
-void FlatCodeGen::writeEOF()
-{
-}
virtual std::ostream &TRANS_ACTION( RedTransAp *trans );
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
};
out << " }\n";
}
-
-
-void FTabCodeGen::writeEOF()
-{
-}
virtual std::ostream &EOF_ACTION( RedStateAp *state );
virtual std::ostream &TRANS_ACTION( RedTransAp *trans );
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
virtual void calcIndexSize();
};
out << " }\n";
}
-
-void GotoCodeGen::writeEOF()
-{
-}
virtual void STATE_GOTO_ERROR();
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
};
out <<
" }\n";
}
-
-void IpGotoCodeGen::writeEOF()
-{
-}
void BREAK( ostream &ret, int targState );
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
protected:
out << " }\n";
}
-
-
-void TabCodeGen::writeEOF()
-{
-}
virtual std::ostream &EOF_ACTION( RedStateAp *state );
virtual std::ostream &TRANS_ACTION( RedTransAp *trans );
virtual void calcIndexSize();
- virtual void writeEOF();
};
out << " }\n";
}
-void JavaTabCodeGen::writeEOF()
-{
-}
-
std::ostream &JavaTabCodeGen::OPEN_ARRAY( string type, string name )
{
array_type = type;
void LOCATE_TRANS();
virtual void writeExec();
- virtual void writeEOF();
virtual void writeData();
virtual void writeInit();
virtual void writeExports();
out << "end # ragel fflat";
}
-
-void RubyFFlatCodeGen::writeEOF()
-{
-}
-
/*
* Local Variables:
* mode: c++
virtual int TRANS_ACTION( RedTransAp *trans );
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
};
STATE_IDS();
}
-void RubyFlatCodeGen::writeEOF()
-{
-}
-
void RubyFlatCodeGen::writeExec()
{
out <<
virtual int TRANS_ACTION( RedTransAp *trans );
virtual void writeData();
- virtual void writeEOF();
virtual void writeExec();
};
STATE_IDS();
}
-void RubyFTabCodeGen::writeEOF()
-{
-}
-
void RubyFTabCodeGen::writeExec()
{
out <<
virtual int TRANS_ACTION( RedTransAp *trans );
void writeData();
- void writeEOF();
void writeExec();
void calcIndexSize();
};
out << " end\n";
}
-void RubyTabCodeGen::writeEOF()
-{
-}
-
-
-
std::ostream &RubyTabCodeGen::FROM_STATE_ACTION_SWITCH()
{
/* Walk the list of functions, printing the cases. */
void LOCATE_TRANS();
virtual void writeExec();
- virtual void writeEOF();
virtual void writeData();
protected:
%% write init;
%% write exec;
- %% write eof;
if cs >= atoi3_first_final
puts "ACCEPT"
else
int awkemu_finish( struct awkemu *fsm )
{
- %% write eof;
-
if ( fsm->cs == awkemu_error )
return -1;
if ( fsm->cs >= awkemu_first_final )
int test_finish( struct test *fsm )
{
- %% write eof;
-
if ( fsm->cs == test_error )
return -1;
if ( fsm->cs >= test_first_final )
int CallTest::finish( )
{
- %% write eof;
-
if ( this->cs == CallTest_error )
return -1;
if ( this->cs >= CallTest_first_final )
- (int) finish;
{
- %% write eof;
if ( cs == CallTest_error )
return -1;
return ( cs >= CallTest_first_final ) ? 1 : 0;
%% write init;
%% write exec;
- %% write eof;
if ( cs >= clang_first_final )
printf("ACCEPT\n");
- (int) finish;
{
- %% write eof;
if ( cs == Clang_error )
return -1;
if ( cs >= Clang_first_final )
// accepting state.
int finish( )
{
- %% write eof;
if ( cs == error )
return -1;
if ( cs >= first_final )
int Scanner::finish( )
{
- %% write eof;
if ( cs == Scanner_error )
return -1;
if ( cs >= Scanner_first_final )
int Scanner::finish( )
{
- %% write eof;
if ( cs == Scanner_error )
return -1;
if ( cs >= Scanner_first_final )
int Scanner::finish( )
{
- %% write eof;
if ( cs == Scanner_error )
return -1;
if ( cs >= Scanner_first_final )
// accepting state.
int finish( )
{
- %% write eof;
-
if ( cs == error )
return -1;
if ( cs >= first_final )
// accepting state.
int finish( )
{
- %% write eof;
-
if ( cs == error )
return -1;
if ( cs >= first_final )
int ErrAct::finish( )
{
- %% write eof;
if ( cs == ErrAct_error )
return -1;
if ( cs >= ErrAct_first_final )
- (int) finish;
{
- %% write eof;
if ( cs == ErrAct_error )
return -1;
else if ( cs >= ErrAct_first_final )
int errintrans_finish( struct errintrans *fsm )
{
- %% write eof;
-
if ( fsm->cs == errintrans_error )
return -1;
if ( fsm->cs >= errintrans_first_final )
%% write init nocs;
%% write exec;
- %% write eof;
if cs >= test_first_final
puts "ACCEPT"
else
int forder_finish( struct forder *fsm )
{
- %% write eof;
-
if ( fsm->cs == forder_error )
return -1;
if ( fsm->cs >= forder_first_final )
int forder_finish( struct forder *fsm )
{
- %% write eof;
-
if ( fsm->cs == forder_error )
return -1;
if ( fsm->cs >= forder_first_final )
int forder_finish( struct forder *fsm )
{
- %% write eof;
-
if ( fsm->cs == forder_error )
return -1;
if ( fsm->cs >= forder_first_final )
int high_finish( struct high *fsm )
{
- %% write eof;
-
if ( fsm->cs == high_error )
return -1;
if ( fsm->cs >= high_first_final )
int Fsm::finish()
{
- %% write eof;
if ( cs == Fsm_error )
return -1;
if ( cs >= Fsm_first_final )
- (int) finish;
{
- %% write eof;
if ( cs == Fsm_error )
return -1;
else if ( cs >= Fsm_first_final )
int Parser::finish( )
{
- %% write eof;
if ( cs == Parser_error )
return -1;
if ( cs >= Parser_first_final )
/* Machine failed before finding a token. */
cout << "PARSE ERROR" << endl;
}
- %% write eof;
}
int main()
int min_finish( struct min *fsm )
{
- %% write eof;
-
if ( fsm->cs == min_error )
return -1;
if ( fsm->cs >= min_first_final )
int range_finish( struct range *fsm )
{
- %% write eof;
-
if ( fsm->cs == range_error )
return -1;
if ( fsm->cs >= range_first_final )
pe = buf + len;
%% write exec;
- %% write eof;
if ( cs == recdescent_error ) {
/* Machine failed before finding a token. */
%% write init;
%% write exec;
- %% write eof;
if ( cs == recdescent_error )
System.out.println( "SCANNER ERROR" );
%% write init;
%% write exec;
- %% write eof;
if cs == recdescent3_error
puts "SCANNER_ERROR"
int Rep::finish( )
{
- %% write eof;
if ( cs == Rep_error )
return -1;
if ( cs >= Rep_first_final )
%% write init;
%% write exec;
- %% write eof;
if cs >= ruby1_first_final
puts "ACCEPT"
else
int state_chart_finish( struct state_chart *fsm )
{
- %% write eof;
-
if ( fsm->cs == state_chart_error )
return -1;
if ( fsm->cs >= state_chart_first_final )
int strs_finish( struct strs *fsm )
{
- %% write eof;
-
if ( fsm->cs == strs_error )
return -1;
if ( fsm->cs >= strs_first_final )
%% write init;
%% write exec;
- %% write eof;
-
if ( fsm->cs >= strs_first_final )
printf("ACCEPT\n");
else
int Scanner::finish( )
{
- %% write eof;
if ( cs == Scanner_error )
return -1;
if ( cs >= Scanner_first_final )
int Concurrent::finish( )
{
- %% write eof;
if ( cs == Concurrent_error )
return -1;
if ( cs >= Concurrent_first_final )
int XML::finish( )
{
- %% write eof;
if ( cs == XML_error )
return -1;
if ( cs >= XML_first_final )