summaryrefslogtreecommitdiff
path: root/test/ragel.d/java1.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/java1.rl
parent5718c319424a21b64e1b50dbb6aae644715b9e85 (diff)
downloadcolm-78e7949ca590b273c2c152a0abe0d51e590a52fd.tar.gz
remove the ragel tests, export runtests for use by ragel
Diffstat (limited to 'test/ragel.d/java1.rl')
-rw-r--r--test/ragel.d/java1.rl47
1 files changed, 0 insertions, 47 deletions
diff --git a/test/ragel.d/java1.rl b/test/ragel.d/java1.rl
deleted file mode 100644
index 68e3dd22..00000000
--- a/test/ragel.d/java1.rl
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * @LANG: java
- */
-
-class java1
-{
- %%{
- machine java1;
-
- one := 'one\n';
- two := 'two\n';
- four := 'four\n';
-
- main :=
- ( 'hello' | 'there' | 'friend' )
- '\n' @{int s = fentry(one); fgoto *s; char c = fc;}
- ( 'one' | 'two' | 'four' ) '\n';
- }%%
-
- %% write data;
-
- static void test( char data[] )
- {
- int cs, p = 0, pe = data.length;
- int top;
-
- %% write init;
- %% write exec;
-
- if ( cs >= java1_first_final )
- System.out.println( "ACCEPT" );
- else
- System.out.println( "FAIL" );
- }
-
- public static void main( String args[] )
- {
- test( "hello\none\n".toCharArray() );
- test( "there\ntwo\n".toCharArray() );
- test( "friend\nfour\n".toCharArray() );
- }
-}
-
-##### OUTPUT #####
-ACCEPT
-FAIL
-FAIL