summaryrefslogtreecommitdiff
path: root/test/ragel.d/scan1.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/scan1.rl
parent5718c319424a21b64e1b50dbb6aae644715b9e85 (diff)
downloadcolm-78e7949ca590b273c2c152a0abe0d51e590a52fd.tar.gz
remove the ragel tests, export runtests for use by ragel
Diffstat (limited to 'test/ragel.d/scan1.rl')
-rw-r--r--test/ragel.d/scan1.rl71
1 files changed, 0 insertions, 71 deletions
diff --git a/test/ragel.d/scan1.rl b/test/ragel.d/scan1.rl
deleted file mode 100644
index 32db0d8d..00000000
--- a/test/ragel.d/scan1.rl
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * @LANG: indep
- * @PROHIBIT_LANGUAGES: cv ruby ocaml rust crack
- * @NEEDS_EOF: yes
- */
-
-ptr ts;
-ptr te;
-int act;
-int token;
-
-%%{
- machine scanner;
-
- # Warning: changing the patterns or the input string will affect the
- # coverage of the scanner action types.
- main := |*
- 'a' => {
- print_str "on last ";
- if ( p+1 == te ) {
- print_str "yes";
- }
- print_str "\n";
- };
-
- 'b'+ => {
- print_str "on next ";
- if ( p+1 == te ) {
- print_str "yes";
- }
- print_str "\n";
- };
-
- 'c1' 'dxxx'? => {
- print_str "on lag ";
- if ( p+1 == te ) {
- print_str "yes";
- }
- print_str "\n";
- };
-
- 'd1' => {
- print_str "lm switch1 ";
- if ( p+1 == te ) {
- print_str "yes";
- }
- print_str "\n";
- };
- 'd2' => {
- print_str "lm switch2 ";
- if ( p+1 == te ) {
- print_str "yes";
- }
- print_str "\n";
- };
-
- [d0-9]+ '.';
-
- '\n';
- *|;
-}%%
-
-##### INPUT #####
-"abbc1d1d2\n"
-##### OUTPUT #####
-on last yes
-on next yes
-on lag yes
-lm switch1 yes
-lm switch2 yes
-ACCEPT