aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-15 07:06:22 +0000
committerDavid Robillard <d@drobilla.net>2012-12-15 07:06:22 +0000
commit10174ffc7ea08b7845dbe409a11811e820536468 (patch)
treec74187d11b7f35c739045e7000d2fa505ac9499a /test
parent8148e755d3f587e6c212ba90efc151ea07de2703 (diff)
downloadresp-10174ffc7ea08b7845dbe409a11811e820536468.tar.gz
resp-10174ffc7ea08b7845dbe409a11811e820536468.tar.bz2
resp-10174ffc7ea08b7845dbe409a11811e820536468.zip
Compile constructors as LLVM struct types.
Use LLVM type names instead of hyper verbose literal types in more places in general. More work on quoting. git-svn-id: http://svn.drobilla.net/resp/trunk@439 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'test')
-rw-r--r--test/quote.resp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/quote.resp b/test/quote.resp
new file mode 100644
index 0000000..741a7a7
--- /dev/null
+++ b/test/quote.resp
@@ -0,0 +1,25 @@
+(def-type (Expr)
+ (Symbol Symbol)
+ (Int Int)
+ (List Expr Expr)
+ (Empty))
+
+
+(def l (quote (2 3)))
+
+(match l
+ (Symbol s)
+ 0
+
+ (Int i)
+ 1
+
+ (List h t)
+ 2
+
+ (Empty)
+ 3)
+
+;(def (car l)
+;(. l 0)
+;l