aboutsummaryrefslogtreecommitdiffstats
path: root/test/quote.resp
diff options
context:
space:
mode:
Diffstat (limited to 'test/quote.resp')
-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