From 99a4eec5bce78ce5262f94a51f2b57ed2507ac46 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 4 May 2015 12:20:32 -0400 Subject: - Added the LuxVar type to properly specify the type of environment bindings. - Implemented "using". - Implemented jvm-program. - Corrected some primitive (un)wrapping errors in lux.compiler.host. - jvm-program is now scoped to enable local variables. - The types of definitions are now stored within the module dictionary. - Added a "main" method that just compiles program.lux. --- source/program.lux | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/program.lux') diff --git a/source/program.lux b/source/program.lux index 6ec9db79e..22bbad2d5 100644 --- a/source/program.lux +++ b/source/program.lux @@ -10,3 +10,9 @@ (if (p x) (list& x (filter p xs')) (filter p xs')))) + +(jvm-program _ + (exec (println "Hello, world!") + (println ($ text:++ "2 + 2 = " (->text (int:+ 2 2)))) + (println (->text (using Int:Ord + (< 5 10)))))) -- cgit v1.2.3