diff options
Diffstat (limited to 'test/ragel.d/erract8.rl')
-rw-r--r-- | test/ragel.d/erract8.rl | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/ragel.d/erract8.rl b/test/ragel.d/erract8.rl deleted file mode 100644 index 7d1f3f28..00000000 --- a/test/ragel.d/erract8.rl +++ /dev/null @@ -1,43 +0,0 @@ -/* - * @LANG: java - */ - -class erract8 -{ - %%{ - machine erract8; - - action on_char { System.out.println("char: " + data[p]); } - action on_err { System.out.println("err: " + data[p]); } - action to_state { System.out.println("to state: " + data[p]); } - - main := 'heXXX' $on_char $err(on_err) $to(to_state); - }%% - - %% write data; - - static void test( char data[] ) - { - int cs, p = 0, pe = data.length; - int eof = pe; - int top; - - %% write init; - %% write exec; - - System.out.println("rest: " + data[p] + data[p+1] + data[p+2]); - } - - public static void main( String args[] ) - { - test( "hello".toCharArray() ); - } -} - -##### OUTPUT ##### -char: h -to state: h -char: e -to state: e -err: l -rest: llo |