summaryrefslogtreecommitdiff
path: root/test/construct2.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/construct2.lm')
-rw-r--r--test/construct2.lm14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/construct2.lm b/test/construct2.lm
new file mode 100644
index 0000000..fd60e9d
--- /dev/null
+++ b/test/construct2.lm
@@ -0,0 +1,14 @@
+##### LM #####
+
+lex
+ ignore /[ \t\n]+/
+ token id /[a-z]+/
+ literal `, `. `* `( `)
+end
+
+def lang [id*]
+
+print( construct lang "a b c" '\n' )
+
+##### EXP #####
+a b c