summaryrefslogtreecommitdiff
path: root/test/reor2.lm
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2014-02-01 19:49:33 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2014-02-01 19:49:33 +0000
commit404ae0f284a3b2d41fcdb53826550e4dfec5c65c (patch)
treecc446af26234e4465b8cc168b720ec44816ff5ab /test/reor2.lm
downloadcolm-tarball-master.tar.gz
Diffstat (limited to 'test/reor2.lm')
-rw-r--r--test/reor2.lm24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/reor2.lm b/test/reor2.lm
new file mode 100644
index 0000000..51f0dd3
--- /dev/null
+++ b/test/reor2.lm
@@ -0,0 +1,24 @@
+##### LM #####
+context undo
+
+ lex
+ ignore /[ ]+/
+ literal `;
+ token NL /'\n'/
+ token id /[a-zA-Z_]+/
+ end
+
+ def item
+ [id]
+
+ def start
+ [item* `; NL]
+end
+
+cons Undo: undo[]
+parse Input: undo::start( Undo )[ stdin ]
+print( Input )
+##### IN #####
+a b;
+##### EXP #####
+a b;