From 33aadce096a947300a2531940efc962c979542da Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 22 Jan 2015 00:18:39 -0400 Subject: 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. --- source/test2.lux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/test2.lux') 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 "{") -- cgit v1.2.3