diff options
author | Adrian Thurston <thurston@complang.org> | 2007-09-24 21:05:15 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2007-09-24 21:05:15 +0000 |
commit | 9331691d783a5eb3fb8f6c0adc1741ea31e9d96f (patch) | |
tree | e5492c6a205c0540208b8d1fa396a1d7c76fdc78 | |
parent | 48158586099d8acab15b923ccaddaf9743109846 (diff) | |
download | ragel-9331691d783a5eb3fb8f6c0adc1741ea31e9d96f.tar.gz |
Removed the write eof command.
64 files changed, 0 insertions, 126 deletions
diff --git a/redfsm/gendata.cpp b/redfsm/gendata.cpp index 01235647..d503261b 100644 --- a/redfsm/gendata.cpp +++ b/redfsm/gendata.cpp @@ -695,13 +695,6 @@ void CodeGenData::writeStatement( InputLoc &loc, int nargs, char **args ) } 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 \"" << diff --git a/redfsm/gendata.h b/redfsm/gendata.h index ebd8d956..4e8f5273 100644 --- a/redfsm/gendata.h +++ b/redfsm/gendata.h @@ -68,7 +68,6 @@ struct CodeGenData 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 diff --git a/rlgen-cd/fflatcodegen.cpp b/rlgen-cd/fflatcodegen.cpp index 915dc8d0..0e6f0411 100644 --- a/rlgen-cd/fflatcodegen.cpp +++ b/rlgen-cd/fflatcodegen.cpp @@ -358,7 +358,3 @@ void FFlatCodeGen::writeExec() out << " }\n"; } - -void FFlatCodeGen::writeEOF() -{ -} diff --git a/rlgen-cd/fflatcodegen.h b/rlgen-cd/fflatcodegen.h index cf92fd9b..7493b501 100644 --- a/rlgen-cd/fflatcodegen.h +++ b/rlgen-cd/fflatcodegen.h @@ -49,7 +49,6 @@ protected: virtual std::ostream &TRANS_ACTION( RedTransAp *trans ); virtual void writeData(); - virtual void writeEOF(); virtual void writeExec(); }; diff --git a/rlgen-cd/fgotocodegen.cpp b/rlgen-cd/fgotocodegen.cpp index 31aa5d20..b3b497bc 100644 --- a/rlgen-cd/fgotocodegen.cpp +++ b/rlgen-cd/fgotocodegen.cpp @@ -275,7 +275,3 @@ void FGotoCodeGen::writeExec() out << " }\n"; } - -void FGotoCodeGen::writeEOF() -{ -} diff --git a/rlgen-cd/fgotocodegen.h b/rlgen-cd/fgotocodegen.h index 076f5c4f..9a93d5d8 100644 --- a/rlgen-cd/fgotocodegen.h +++ b/rlgen-cd/fgotocodegen.h @@ -49,7 +49,6 @@ public: unsigned int EOF_ACTION( RedStateAp *state ); virtual void writeData(); - virtual void writeEOF(); virtual void writeExec(); }; diff --git a/rlgen-cd/flatcodegen.cpp b/rlgen-cd/flatcodegen.cpp index ad522798..7be60977 100644 --- a/rlgen-cd/flatcodegen.cpp +++ b/rlgen-cd/flatcodegen.cpp @@ -797,7 +797,3 @@ void FlatCodeGen::writeExec() out << " }\n"; } - -void FlatCodeGen::writeEOF() -{ -} diff --git a/rlgen-cd/flatcodegen.h b/rlgen-cd/flatcodegen.h index 27dee2ef..4497b240 100644 --- a/rlgen-cd/flatcodegen.h +++ b/rlgen-cd/flatcodegen.h @@ -81,7 +81,6 @@ protected: virtual std::ostream &TRANS_ACTION( RedTransAp *trans ); virtual void writeData(); - virtual void writeEOF(); virtual void writeExec(); }; diff --git a/rlgen-cd/ftabcodegen.cpp b/rlgen-cd/ftabcodegen.cpp index d8e1ba8a..ed49cd7d 100644 --- a/rlgen-cd/ftabcodegen.cpp +++ b/rlgen-cd/ftabcodegen.cpp @@ -410,8 +410,3 @@ void FTabCodeGen::writeExec() out << " }\n"; } - - -void FTabCodeGen::writeEOF() -{ -} diff --git a/rlgen-cd/ftabcodegen.h b/rlgen-cd/ftabcodegen.h index 9d26d1ca..9a911741 100644 --- a/rlgen-cd/ftabcodegen.h +++ b/rlgen-cd/ftabcodegen.h @@ -49,7 +49,6 @@ protected: 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(); }; diff --git a/rlgen-cd/gotocodegen.cpp b/rlgen-cd/gotocodegen.cpp index 51a4c162..ea4337ec 100644 --- a/rlgen-cd/gotocodegen.cpp +++ b/rlgen-cd/gotocodegen.cpp @@ -779,7 +779,3 @@ void GotoCodeGen::writeExec() out << " }\n"; } - -void GotoCodeGen::writeEOF() -{ -} diff --git a/rlgen-cd/gotocodegen.h b/rlgen-cd/gotocodegen.h index 625c2c23..7f58bbd8 100644 --- a/rlgen-cd/gotocodegen.h +++ b/rlgen-cd/gotocodegen.h @@ -83,7 +83,6 @@ public: virtual void STATE_GOTO_ERROR(); virtual void writeData(); - virtual void writeEOF(); virtual void writeExec(); }; diff --git a/rlgen-cd/ipgotocodegen.cpp b/rlgen-cd/ipgotocodegen.cpp index 025781f9..42659e33 100644 --- a/rlgen-cd/ipgotocodegen.cpp +++ b/rlgen-cd/ipgotocodegen.cpp @@ -427,7 +427,3 @@ void IpGotoCodeGen::writeExec() out << " }\n"; } - -void IpGotoCodeGen::writeEOF() -{ -} diff --git a/rlgen-cd/ipgotocodegen.h b/rlgen-cd/ipgotocodegen.h index f32678ba..2664e3b0 100644 --- a/rlgen-cd/ipgotocodegen.h +++ b/rlgen-cd/ipgotocodegen.h @@ -55,7 +55,6 @@ public: void BREAK( ostream &ret, int targState ); virtual void writeData(); - virtual void writeEOF(); virtual void writeExec(); protected: diff --git a/rlgen-cd/tabcodegen.cpp b/rlgen-cd/tabcodegen.cpp index 78f8a26f..0787640d 100644 --- a/rlgen-cd/tabcodegen.cpp +++ b/rlgen-cd/tabcodegen.cpp @@ -1018,8 +1018,3 @@ void TabCodeGen::writeExec() out << " }\n"; } - - -void TabCodeGen::writeEOF() -{ -} diff --git a/rlgen-cd/tabcodegen.h b/rlgen-cd/tabcodegen.h index 745eb18d..ea4d6d9f 100644 --- a/rlgen-cd/tabcodegen.h +++ b/rlgen-cd/tabcodegen.h @@ -87,7 +87,6 @@ protected: virtual std::ostream &EOF_ACTION( RedStateAp *state ); virtual std::ostream &TRANS_ACTION( RedTransAp *trans ); virtual void calcIndexSize(); - virtual void writeEOF(); }; diff --git a/rlgen-java/javacodegen.cpp b/rlgen-java/javacodegen.cpp index 6f90b05d..d16ddbfc 100644 --- a/rlgen-java/javacodegen.cpp +++ b/rlgen-java/javacodegen.cpp @@ -1064,10 +1064,6 @@ void JavaTabCodeGen::writeExec() out << " }\n"; } -void JavaTabCodeGen::writeEOF() -{ -} - std::ostream &JavaTabCodeGen::OPEN_ARRAY( string type, string name ) { array_type = type; diff --git a/rlgen-java/javacodegen.h b/rlgen-java/javacodegen.h index d12af944..85e91ee2 100644 --- a/rlgen-java/javacodegen.h +++ b/rlgen-java/javacodegen.h @@ -74,7 +74,6 @@ struct JavaTabCodeGen : public CodeGenData void LOCATE_TRANS(); virtual void writeExec(); - virtual void writeEOF(); virtual void writeData(); virtual void writeInit(); virtual void writeExports(); diff --git a/rlgen-ruby/ruby-fflatcodegen.cpp b/rlgen-ruby/ruby-fflatcodegen.cpp index dd5ef8a5..5324e66b 100644 --- a/rlgen-ruby/ruby-fflatcodegen.cpp +++ b/rlgen-ruby/ruby-fflatcodegen.cpp @@ -332,11 +332,6 @@ void RubyFFlatCodeGen::writeExec() out << "end # ragel fflat"; } - -void RubyFFlatCodeGen::writeEOF() -{ -} - /* * Local Variables: * mode: c++ diff --git a/rlgen-ruby/ruby-fflatcodegen.h b/rlgen-ruby/ruby-fflatcodegen.h index 9836b957..b1778be3 100644 --- a/rlgen-ruby/ruby-fflatcodegen.h +++ b/rlgen-ruby/ruby-fflatcodegen.h @@ -44,7 +44,6 @@ protected: virtual int TRANS_ACTION( RedTransAp *trans ); virtual void writeData(); - virtual void writeEOF(); virtual void writeExec(); }; diff --git a/rlgen-ruby/ruby-flatcodegen.cpp b/rlgen-ruby/ruby-flatcodegen.cpp index e29aea01..59780655 100644 --- a/rlgen-ruby/ruby-flatcodegen.cpp +++ b/rlgen-ruby/ruby-flatcodegen.cpp @@ -620,10 +620,6 @@ void RubyFlatCodeGen::writeData() STATE_IDS(); } -void RubyFlatCodeGen::writeEOF() -{ -} - void RubyFlatCodeGen::writeExec() { out << diff --git a/rlgen-ruby/ruby-flatcodegen.h b/rlgen-ruby/ruby-flatcodegen.h index f7b97a16..3d50b6bb 100644 --- a/rlgen-ruby/ruby-flatcodegen.h +++ b/rlgen-ruby/ruby-flatcodegen.h @@ -82,7 +82,6 @@ protected: virtual int TRANS_ACTION( RedTransAp *trans ); virtual void writeData(); - virtual void writeEOF(); virtual void writeExec(); }; diff --git a/rlgen-ruby/ruby-ftabcodegen.cpp b/rlgen-ruby/ruby-ftabcodegen.cpp index c0a4a9f4..1dc0629c 100644 --- a/rlgen-ruby/ruby-ftabcodegen.cpp +++ b/rlgen-ruby/ruby-ftabcodegen.cpp @@ -254,10 +254,6 @@ void RubyFTabCodeGen::writeData() STATE_IDS(); } -void RubyFTabCodeGen::writeEOF() -{ -} - void RubyFTabCodeGen::writeExec() { out << diff --git a/rlgen-ruby/ruby-ftabcodegen.h b/rlgen-ruby/ruby-ftabcodegen.h index 0b45e290..d5f1ef1d 100644 --- a/rlgen-ruby/ruby-ftabcodegen.h +++ b/rlgen-ruby/ruby-ftabcodegen.h @@ -41,7 +41,6 @@ protected: virtual int TRANS_ACTION( RedTransAp *trans ); void writeData(); - void writeEOF(); void writeExec(); void calcIndexSize(); }; diff --git a/rlgen-ruby/ruby-tabcodegen.cpp b/rlgen-ruby/ruby-tabcodegen.cpp index acca0829..158444f4 100644 --- a/rlgen-ruby/ruby-tabcodegen.cpp +++ b/rlgen-ruby/ruby-tabcodegen.cpp @@ -375,12 +375,6 @@ void RubyTabCodeGen::writeExec() out << " end\n"; } -void RubyTabCodeGen::writeEOF() -{ -} - - - std::ostream &RubyTabCodeGen::FROM_STATE_ACTION_SWITCH() { /* Walk the list of functions, printing the cases. */ diff --git a/rlgen-ruby/ruby-tabcodegen.h b/rlgen-ruby/ruby-tabcodegen.h index bd11a7bc..22c7194c 100644 --- a/rlgen-ruby/ruby-tabcodegen.h +++ b/rlgen-ruby/ruby-tabcodegen.h @@ -56,7 +56,6 @@ public: void LOCATE_TRANS(); virtual void writeExec(); - virtual void writeEOF(); virtual void writeData(); protected: diff --git a/test/atoi3.rl b/test/atoi3.rl index b8d54f6e..fcd4a416 100644 --- a/test/atoi3.rl +++ b/test/atoi3.rl @@ -35,7 +35,6 @@ def run_machine( data ) %% write init; %% write exec; - %% write eof; if cs >= atoi3_first_final puts "ACCEPT" else diff --git a/test/awkemu.rl b/test/awkemu.rl index 30ca54fe..343f3e6f 100644 --- a/test/awkemu.rl +++ b/test/awkemu.rl @@ -113,8 +113,6 @@ void awkemu_execute( struct awkemu *fsm, const char *_data, int _len ) int awkemu_finish( struct awkemu *fsm ) { - %% write eof; - if ( fsm->cs == awkemu_error ) return -1; if ( fsm->cs >= awkemu_first_final ) diff --git a/test/call1.rl b/test/call1.rl index 24a362f0..ddd552a7 100644 --- a/test/call1.rl +++ b/test/call1.rl @@ -56,8 +56,6 @@ void test_execute( struct test *fsm, const char *data, int len ) int test_finish( struct test *fsm ) { - %% write eof; - if ( fsm->cs == test_error ) return -1; if ( fsm->cs >= test_first_final ) diff --git a/test/call2.rl b/test/call2.rl index c4474968..e6811fb3 100644 --- a/test/call2.rl +++ b/test/call2.rl @@ -72,8 +72,6 @@ void CallTest::execute( const char *data, int len ) int CallTest::finish( ) { - %% write eof; - if ( this->cs == CallTest_error ) return -1; if ( this->cs >= CallTest_first_final ) diff --git a/test/call3.rl b/test/call3.rl index c253b245..b19b96c4 100644 --- a/test/call3.rl +++ b/test/call3.rl @@ -79,7 +79,6 @@ int num = 0; - (int) finish; { - %% write eof; if ( cs == CallTest_error ) return -1; return ( cs >= CallTest_first_final ) ? 1 : 0; diff --git a/test/clang1.rl b/test/clang1.rl index ade8f9af..7ed0456c 100644 --- a/test/clang1.rl +++ b/test/clang1.rl @@ -171,7 +171,6 @@ void test( char *buf ) %% write init; %% write exec; - %% write eof; if ( cs >= clang_first_final ) printf("ACCEPT\n"); diff --git a/test/clang2.rl b/test/clang2.rl index fcb6ba81..fb7428ee 100644 --- a/test/clang2.rl +++ b/test/clang2.rl @@ -168,7 +168,6 @@ - (int) finish; { - %% write eof; if ( cs == Clang_error ) return -1; if ( cs >= Clang_first_final ) diff --git a/test/clang3.rl b/test/clang3.rl index d950eb36..6c9150e1 100644 --- a/test/clang3.rl +++ b/test/clang3.rl @@ -168,7 +168,6 @@ class CLang // accepting state. int finish( ) { - %% write eof; if ( cs == error ) return -1; if ( cs >= first_final ) diff --git a/test/cppscan1.rl b/test/cppscan1.rl index 9c92a1c2..0b6e00d7 100644 --- a/test/cppscan1.rl +++ b/test/cppscan1.rl @@ -147,7 +147,6 @@ int Scanner::execute( char *data, int len ) int Scanner::finish( ) { - %% write eof; if ( cs == Scanner_error ) return -1; if ( cs >= Scanner_first_final ) diff --git a/test/cppscan2.rl b/test/cppscan2.rl index 07fc01bd..9ce3a259 100644 --- a/test/cppscan2.rl +++ b/test/cppscan2.rl @@ -196,7 +196,6 @@ int Scanner::execute( char *data, int len ) int Scanner::finish( ) { - %% write eof; if ( cs == Scanner_error ) return -1; if ( cs >= Scanner_first_final ) diff --git a/test/cppscan3.rl b/test/cppscan3.rl index d08e1a2b..02c96beb 100644 --- a/test/cppscan3.rl +++ b/test/cppscan3.rl @@ -149,7 +149,6 @@ void Scanner::execute( char *data, int len ) int Scanner::finish( ) { - %% write eof; if ( cs == Scanner_error ) return -1; if ( cs >= Scanner_first_final ) diff --git a/test/cppscan4.rl b/test/cppscan4.rl index fa7499fa..8e9dc1b6 100644 --- a/test/cppscan4.rl +++ b/test/cppscan4.rl @@ -208,8 +208,6 @@ class Scanner // accepting state. int finish( ) { - %% write eof; - if ( cs == error ) return -1; if ( cs >= first_final ) diff --git a/test/cppscan5.rl b/test/cppscan5.rl index 3c0035bf..dcbb715b 100644 --- a/test/cppscan5.rl +++ b/test/cppscan5.rl @@ -152,8 +152,6 @@ class Scanner // accepting state. int finish( ) { - %% write eof; - if ( cs == error ) return -1; if ( cs >= first_final ) diff --git a/test/erract1.rl b/test/erract1.rl index ee0237d3..9f34f554 100644 --- a/test/erract1.rl +++ b/test/erract1.rl @@ -76,7 +76,6 @@ int ErrAct::execute( const char *_data, int _len ) int ErrAct::finish( ) { - %% write eof; if ( cs == ErrAct_error ) return -1; if ( cs >= ErrAct_first_final ) diff --git a/test/erract5.rl b/test/erract5.rl index 73edec81..2b233244 100644 --- a/test/erract5.rl +++ b/test/erract5.rl @@ -74,7 +74,6 @@ - (int) finish; { - %% write eof; if ( cs == ErrAct_error ) return -1; else if ( cs >= ErrAct_first_final ) diff --git a/test/erract6.rl b/test/erract6.rl index 44632f0b..688042f4 100644 --- a/test/erract6.rl +++ b/test/erract6.rl @@ -40,8 +40,6 @@ void errintrans_execute( struct errintrans *fsm, const char *_data, int _len ) int errintrans_finish( struct errintrans *fsm ) { - %% write eof; - if ( fsm->cs == errintrans_error ) return -1; if ( fsm->cs >= errintrans_first_final ) diff --git a/test/export3.rl b/test/export3.rl index c0dde028..dbf74b84 100644 --- a/test/export3.rl +++ b/test/export3.rl @@ -30,7 +30,6 @@ def run_machine( data ) %% write init nocs; %% write exec; - %% write eof; if cs >= test_first_final puts "ACCEPT" else diff --git a/test/forder1.rl b/test/forder1.rl index 3244b33b..9873af41 100644 --- a/test/forder1.rl +++ b/test/forder1.rl @@ -44,8 +44,6 @@ void forder_execute( struct forder *fsm, const char *_data, int _len ) int forder_finish( struct forder *fsm ) { - %% write eof; - if ( fsm->cs == forder_error ) return -1; if ( fsm->cs >= forder_first_final ) diff --git a/test/forder2.rl b/test/forder2.rl index 18eae170..d92f888d 100644 --- a/test/forder2.rl +++ b/test/forder2.rl @@ -51,8 +51,6 @@ void forder_execute( struct forder *fsm, const char *_data, int _len ) int forder_finish( struct forder *fsm ) { - %% write eof; - if ( fsm->cs == forder_error ) return -1; if ( fsm->cs >= forder_first_final ) diff --git a/test/forder3.rl b/test/forder3.rl index 62fdb86a..15ea41e6 100644 --- a/test/forder3.rl +++ b/test/forder3.rl @@ -44,8 +44,6 @@ void forder_execute( struct forder *fsm, const char *_data, int _len ) int forder_finish( struct forder *fsm ) { - %% write eof; - if ( fsm->cs == forder_error ) return -1; if ( fsm->cs >= forder_first_final ) diff --git a/test/high1.rl b/test/high1.rl index 41b9d321..9179c893 100644 --- a/test/high1.rl +++ b/test/high1.rl @@ -49,8 +49,6 @@ void high_execute( struct high *fsm, const unsigned int *_data, int _len ) int high_finish( struct high *fsm ) { - %% write eof; - if ( fsm->cs == high_error ) return -1; if ( fsm->cs >= high_first_final ) diff --git a/test/high2.rl b/test/high2.rl index 1aeb9b3f..53f1d80b 100644 --- a/test/high2.rl +++ b/test/high2.rl @@ -67,7 +67,6 @@ int Fsm::execute( const unsigned char *_data, int _len ) int Fsm::finish() { - %% write eof; if ( cs == Fsm_error ) return -1; if ( cs >= Fsm_first_final ) diff --git a/test/high3.rl b/test/high3.rl index 03d2a742..d915bff5 100644 --- a/test/high3.rl +++ b/test/high3.rl @@ -67,7 +67,6 @@ - (int) finish; { - %% write eof; if ( cs == Fsm_error ) return -1; else if ( cs >= Fsm_first_final ) diff --git a/test/keller1.rl b/test/keller1.rl index 94d25b76..646cec93 100644 --- a/test/keller1.rl +++ b/test/keller1.rl @@ -777,7 +777,6 @@ int Parser::execute( LangEl *_data, int _len ) int Parser::finish( ) { - %% write eof; if ( cs == Parser_error ) return -1; if ( cs >= Parser_first_final ) diff --git a/test/lmgoto.rl b/test/lmgoto.rl index 96c4392f..4d9dac4c 100644 --- a/test/lmgoto.rl +++ b/test/lmgoto.rl @@ -162,7 +162,6 @@ void Scanner::run( char *buf ) /* Machine failed before finding a token. */ cout << "PARSE ERROR" << endl; } - %% write eof; } int main() diff --git a/test/minimize1.rl b/test/minimize1.rl index 418c3f4b..c550ebb7 100644 --- a/test/minimize1.rl +++ b/test/minimize1.rl @@ -39,8 +39,6 @@ void min_execute( struct min *fsm, const char *_data, int _len ) int min_finish( struct min *fsm ) { - %% write eof; - if ( fsm->cs == min_error ) return -1; if ( fsm->cs >= min_first_final ) diff --git a/test/range.rl b/test/range.rl index eaa52bdf..43e6214a 100644 --- a/test/range.rl +++ b/test/range.rl @@ -34,8 +34,6 @@ void range_execute( struct range *fsm, const char *_data, int _len ) int range_finish( struct range *fsm ) { - %% write eof; - if ( fsm->cs == range_error ) return -1; if ( fsm->cs >= range_first_final ) diff --git a/test/recdescent1.rl b/test/recdescent1.rl index c184ba7f..66812f41 100644 --- a/test/recdescent1.rl +++ b/test/recdescent1.rl @@ -87,7 +87,6 @@ void test( char *buf ) pe = buf + len; %% write exec; - %% write eof; if ( cs == recdescent_error ) { /* Machine failed before finding a token. */ diff --git a/test/recdescent2.rl b/test/recdescent2.rl index 2f3ef80d..1e51451c 100644 --- a/test/recdescent2.rl +++ b/test/recdescent2.rl @@ -78,7 +78,6 @@ class recdescent2 %% write init; %% write exec; - %% write eof; if ( cs == recdescent_error ) System.out.println( "SCANNER ERROR" ); diff --git a/test/recdescent3.rl b/test/recdescent3.rl index 35a8e08d..c5621e11 100644 --- a/test/recdescent3.rl +++ b/test/recdescent3.rl @@ -77,7 +77,6 @@ def run_machine( data ) %% write init; %% write exec; - %% write eof; if cs == recdescent3_error puts "SCANNER_ERROR" diff --git a/test/repetition.rl b/test/repetition.rl index 23638b3e..b14067ef 100644 --- a/test/repetition.rl +++ b/test/repetition.rl @@ -62,7 +62,6 @@ int Rep::execute( const char *_data, int _len ) int Rep::finish( ) { - %% write eof; if ( cs == Rep_error ) return -1; if ( cs >= Rep_first_final ) diff --git a/test/ruby1.rl b/test/ruby1.rl index 003ebc9d..e2f4bc96 100644 --- a/test/ruby1.rl +++ b/test/ruby1.rl @@ -37,7 +37,6 @@ def run_machine( data ) %% write init; %% write exec; - %% write eof; if cs >= ruby1_first_final puts "ACCEPT" else diff --git a/test/statechart1.rl b/test/statechart1.rl index 679c11ac..884f3f06 100644 --- a/test/statechart1.rl +++ b/test/statechart1.rl @@ -67,8 +67,6 @@ void state_chart_execute( struct state_chart *fsm, const char *_data, int _len ) 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 ) diff --git a/test/strings1.rl b/test/strings1.rl index af7bfd0e..0d5eea81 100644 --- a/test/strings1.rl +++ b/test/strings1.rl @@ -150,8 +150,6 @@ void strs_execute( struct strs *fsm, const char *_data, int _len ) int strs_finish( struct strs *fsm ) { - %% write eof; - if ( fsm->cs == strs_error ) return -1; if ( fsm->cs >= strs_first_final ) diff --git a/test/strings2.rl b/test/strings2.rl index 9048ad70..edad63b2 100644 --- a/test/strings2.rl +++ b/test/strings2.rl @@ -1319,8 +1319,6 @@ void test( char *buf ) %% write init; %% write exec; - %% write eof; - if ( fsm->cs >= strs_first_final ) printf("ACCEPT\n"); else diff --git a/test/tokstart1.rl b/test/tokstart1.rl index ae1ab3fe..cdf916db 100644 --- a/test/tokstart1.rl +++ b/test/tokstart1.rl @@ -119,7 +119,6 @@ int Scanner::execute( char *data, int len ) int Scanner::finish( ) { - %% write eof; if ( cs == Scanner_error ) return -1; if ( cs >= Scanner_first_final ) diff --git a/test/union.rl b/test/union.rl index 6ad7e9a6..a8beacea 100644 --- a/test/union.rl +++ b/test/union.rl @@ -106,7 +106,6 @@ void Concurrent::execute( const char *data, int len ) int Concurrent::finish( ) { - %% write eof; if ( cs == Concurrent_error ) return -1; if ( cs >= Concurrent_first_final ) diff --git a/test/xml.rl b/test/xml.rl index ca13f435..3a764000 100644 --- a/test/xml.rl +++ b/test/xml.rl @@ -92,7 +92,6 @@ struct XML int XML::finish( ) { - %% write eof; if ( cs == XML_error ) return -1; if ( cs >= XML_first_final ) |