aboutsummaryrefslogtreecommitdiff
path: root/test2.lang
diff options
context:
space:
mode:
authorEduardo Julian2014-12-14 23:20:24 -0400
committerEduardo Julian2014-12-14 23:20:24 -0400
commit604e1d0c108f6153b599684b4b7828eae709118a (patch)
tree42d1c0c9b5543e8f692f680969bc599c3e61b0bc /test2.lang
parent8e00142b18d06dfb93f3ee34aa7d28b7618b5393 (diff)
Now defining functions as classes inheriting Function.
Diffstat (limited to '')
-rw-r--r--test2.lang5
1 files changed, 4 insertions, 1 deletions
diff --git a/test2.lang b/test2.lang
index 8f64f672b..58079e172 100644
--- a/test2.lang
+++ b/test2.lang
@@ -20,7 +20,10 @@
(def sample (#Tag "value"))
+(def (constant x y)
+ y)
+
(def (main args)
(if true
- (_. (_.. System out) (println (another/id "YOLO")))
+ (_. (_.. System out) (println (constant "TRUE" "YOLO")))
(_. (_.. System out) (println "FALSE"))))