aboutsummaryrefslogtreecommitdiff
path: root/test2.lang
diff options
context:
space:
mode:
authorEduardo Julian2014-12-07 19:46:57 -0400
committerEduardo Julian2014-12-07 19:46:57 -0400
commit98b427b8835eca42c0ee401a4deb842a9445a737 (patch)
treef70079f05df9f49ffe15c0d3cd15b78232a6cdd2 /test2.lang
parent0bccd6a2313dc5eadb635d1fbf02dbb0a5ff2cfe (diff)
Cleaned up a lot of useless code and removed the state monad from the compilation phase (the ASM library already works as a state monad).
Diffstat (limited to '')
-rw-r--r--test2.lang10
1 files changed, 6 insertions, 4 deletions
diff --git a/test2.lang b/test2.lang
index df0fe3aac..feb3adc3f 100644
--- a/test2.lang
+++ b/test2.lang
@@ -9,8 +9,10 @@
fields
(: out java.io.PrintStream))
-(_. (_.. java.lang.System out) (println "MEME"))
+(def (id x)
+ x)
-(if true
- (_. (_.. java.lang.System out) (println "TRUE"))
- (_. (_.. java.lang.System out) (println "FALSE")))
+(def (main args)
+ (if true
+ (_. (_.. java.lang.System out) (println "TRUE"))
+ (_. (_.. java.lang.System out) (println "FALSE"))))