summaryrefslogtreecommitdiff
path: root/test/typeref3.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/typeref3.lm
downloadcolm-tarball-404ae0f284a3b2d41fcdb53826550e4dfec5c65c.tar.gz
Diffstat (limited to 'test/typeref3.lm')
-rw-r--r--test/typeref3.lm27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/typeref3.lm b/test/typeref3.lm
new file mode 100644
index 0000000..dedff0a
--- /dev/null
+++ b/test/typeref3.lm
@@ -0,0 +1,27 @@
+##### LM #####
+namespace n1
+
+ namespace n2
+ lex
+ token id / 'a' .. 'z' /
+ ignore / '\n' | '\t' | ' ' /
+ end
+
+ def start
+ [id*]
+ end
+end
+
+parse P: n1::n2::id?[stdin]
+print( P )
+##### IN #####
+
+##### EXP #####
+##### IN #####
+a
+##### EXP #####
+a
+##### IN #####
+a b
+##### EXP #####
+NIL--noeol