summaryrefslogtreecommitdiff
path: root/test/ragel.d/rust1.rl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ragel.d/rust1.rl')
-rw-r--r--test/ragel.d/rust1.rl39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/ragel.d/rust1.rl b/test/ragel.d/rust1.rl
deleted file mode 100644
index 5eac919b..00000000
--- a/test/ragel.d/rust1.rl
+++ /dev/null
@@ -1,39 +0,0 @@
-//
-// @LANG: rust
-//
-
-%%{
- machine atoi;
-
- main := '-'? [0-9]+ '.' @{
- println!( "match" );
- };
-}%%
-
-fn some_fn() -> &'static str { "foo" }
-
-%% write data;
-
-fn m( s: String )
-{
- let data: &[u8] = s.as_bytes();
- let mut p = 0;
- let mut pe = s.len();
- let mut cs: i32 = 0;
-
- %% write init;
- %% write exec;
-}
-
-fn main()
-{
- m( "-99.".to_string() );
- m( "100.".to_string() );
- m( "100x.".to_string() );
- m( "1000.".to_string() );
-}
-
-##### OUTPUT #####
-match
-match
-match