summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-01-22 22:20:13 -0500
committerAdrian Thurston <thurston@complang.org>2014-01-22 22:20:13 -0500
commite53eb4a9eee52624f9c960600bb56a5823bf658b (patch)
tree49ec2a9a378c18e5cfcde3dfd13744f39140ae69
parent146b354bed2618fbe7d9d807fa85691254b5a68f (diff)
downloadcolm-e53eb4a9eee52624f9c960600bb56a5823bf658b.tar.gz
added test case for make_tree
-rw-r--r--test/maketree1.lm13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/maketree1.lm b/test/maketree1.lm
new file mode 100644
index 00000000..55548325
--- /dev/null
+++ b/test/maketree1.lm
@@ -0,0 +1,13 @@
+##### LM #####
+lex
+ token a /'a'/
+ token b /'b'/
+ token c /'c'/
+end
+
+def A
+ [a b c]
+
+print( make_tree( typeid<A> cons a "a" cons b "b" cons c "c" ) '\n' )
+##### EXP #####
+abc