diff options
Diffstat (limited to 'test/ragel.d/goto1.rl')
-rw-r--r-- | test/ragel.d/goto1.rl | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/ragel.d/goto1.rl b/test/ragel.d/goto1.rl deleted file mode 100644 index 0bf121f4..00000000 --- a/test/ragel.d/goto1.rl +++ /dev/null @@ -1,37 +0,0 @@ -/* - * @LANG: indep - * @PROHIBIT_LANGUAGES: cv ruby ocaml rust crack - */ - -int target; - -%%{ - machine goto1; - - unused := 'unused'; - - one := 'one' @{ - print_str "one\n"; - target = fentry(main); - fgoto *target; - }; - - two := 'two' @{ - print_str "two\n"; - target = fentry(main); - fgoto *target; - }; - - main := - '1' @{ target = fentry(one); fgoto *target; } - | '2' @{ target = fentry(two); fgoto *target; } - | '\n'; -}%% - -##### INPUT ##### -"1one2two1one\n" -##### OUTPUT ##### -one -two -one -ACCEPT |