summaryrefslogtreecommitdiff
path: root/test/ragel.d/crack1.rl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ragel.d/crack1.rl')
-rw-r--r--test/ragel.d/crack1.rl39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/ragel.d/crack1.rl b/test/ragel.d/crack1.rl
deleted file mode 100644
index 2154416d..00000000
--- a/test/ragel.d/crack1.rl
+++ /dev/null
@@ -1,39 +0,0 @@
-// @LANG: crack
-
-import crack.io cout;
-
-%%{
- machine atoi;
-
- main := '-'? [0-9]+ '.' @{
- cout `match\n`;
- };
-}%%
-
-%% write data;
-
-void m( String s )
-{
- byteptr data = s.buffer;
- int p = 0;
- int pe = s.size;
- int cs;
-
- %% write init;
- %% write exec;
-}
-
-void main()
-{
- m( "-99." );
- m( "100." );
- m( "100x." );
- m( "1000." );
-}
-
-main();
-
-##### OUTPUT #####
-match
-match
-match