summaryrefslogtreecommitdiff
path: root/test/ragel.d/erract7.rl
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2020-03-08 23:29:57 +0200
committerAdrian Thurston <thurston@colm.net>2020-03-08 23:53:25 +0200
commit78e7949ca590b273c2c152a0abe0d51e590a52fd (patch)
treec253c852aec77af8a04c24d921d8657ff29c4101 /test/ragel.d/erract7.rl
parent5718c319424a21b64e1b50dbb6aae644715b9e85 (diff)
downloadcolm-78e7949ca590b273c2c152a0abe0d51e590a52fd.tar.gz
remove the ragel tests, export runtests for use by ragel
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