17 action a_or_b { printf("a or b\n"); }
20 ( 'a' . [ab]* @a_or_b ) |
21 ( 'b' . [ab]* @a_or_b )
27 void min_init( struct min *fsm )
32 void min_execute( struct min *fsm, const char *_data, int _len )
34 const char *p = _data;
35 const char *pe = _data+_len;
40 int min_finish( struct min *fsm )
42 if ( fsm->cs == min_error )
44 if ( fsm->cs >= min_first_final )
51 void test( char *buf )
53 int len = strlen( buf );
55 min_execute( &fsm, buf, len );
56 if ( min_finish( &fsm ) > 0 )
71 #ifdef _____OUTPUT_____