summaryrefslogtreecommitdiff
path: root/test/ragel.d/erract7.rl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ragel.d/erract7.rl')
-rw-r--r--test/ragel.d/erract7.rl41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/ragel.d/erract7.rl b/test/ragel.d/erract7.rl
deleted file mode 100644
index 2a101d26..00000000
--- a/test/ragel.d/erract7.rl
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * @LANG: c
- */
-
-#include <stdio.h>
-#include <string.h>
-
-%%{
- machine foo;
-
- action on_char { printf("char: %c\n", *p); }
- action on_err { printf("err: %c\n", *p); }
- action to_state { printf("to state: %c\n", *p); }
-
- main := 'heXXX' $on_char $err(on_err) $to(to_state);
-}%%
-
-%% write data;
-
-int main()
-{
- int cs;
- char *p = "hello", *pe = p + strlen(p);
- char *eof = pe;
- %%{
- write init;
- write exec;
- }%%
-
- printf( "rest: %s\n", p );
-
- return 0;
-}
-
-##### OUTPUT #####
-char: h
-to state: h
-char: e
-to state: e
-err: l
-rest: llo