summaryrefslogtreecommitdiff
path: root/test/typeref1.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeref1.lm')
-rw-r--r--test/typeref1.lm33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/typeref1.lm b/test/typeref1.lm
new file mode 100644
index 0000000..de1fa26
--- /dev/null
+++ b/test/typeref1.lm
@@ -0,0 +1,33 @@
+##### 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
+ c
+d
+##### EXP #####
+a
+ b
+ c
+d