aboutsummaryrefslogtreecommitdiff
path: root/source/test2.lux
diff options
context:
space:
mode:
authorEduardo Julian2015-01-22 00:18:39 -0400
committerEduardo Julian2015-01-22 00:18:39 -0400
commit33aadce096a947300a2531940efc962c979542da (patch)
tree46c306177d19dae8eb4a9c65e43292dd3a95dd3e /source/test2.lux
parent117124707863ed7d89ef13db417f883a76da041c (diff)
WARNING: Broken
[Enhancements] - Restructured the lexer a bit. - Restructured the parser a lot. - Changed the syntax a bit. - Module-names are now separated from def-names by a colon (e.g. module/submodule:var) - i+ -> iadd, i- -> isub, i* -> imul, i/ -> idiv - Added a (incomplete) way to annotate defs. Currently, only serves to mark defs as macros. - Removed "import" and "use". "require" is meant to be the way to load modules. - Did some major refactoring, cleaning and upgrading in the analyser. Though there is still some work pending.
Diffstat (limited to '')
-rw-r--r--source/test2.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/test2.lux b/source/test2.lux
index c72602edb..f2fe02bb8 100644
--- a/source/test2.lux
+++ b/source/test2.lux
@@ -1,4 +1,4 @@
-(use "./util" as util)
+(require "./util")
(def (print-enum enum)
(case enum
@@ -10,10 +10,10 @@
(print-enum enum'))))
#((def monadic-dup
- (util/exec [foo get-state
+ (util:exec [foo get-state
bar get-state
- baz (util/return 1000)]
- (util/return (+ (+ foo bar) baz)))))#
+ baz (util:return 1000)]
+ (util:return (+ (+ foo bar) baz)))))#
(def (print-map list-map)
(do (print "{")