6 * Test of a transition going to the error state.
21 char = any - (digit | '\n');
28 void errintrans_init( struct errintrans *fsm )
33 void errintrans_execute( struct errintrans *fsm, const char *_data, int _len )
35 const char *p = _data;
36 const char *pe = _data+_len;
41 int errintrans_finish( struct errintrans *fsm )
43 if ( fsm->cs == errintrans_error )
45 if ( fsm->cs >= errintrans_first_final )
51 struct errintrans fsm;
54 void test( char *buf )
56 int len = strlen( buf );
57 errintrans_init( &fsm );
58 errintrans_execute( &fsm, buf, len );
59 if ( errintrans_finish( &fsm ) > 0 )
69 "good, does not have numbers\n"
73 "bad, has numbers 666\n"
79 #ifdef _____OUTPUT_____