aboutsummaryrefslogtreecommitdiff
path: root/source/program.lux
diff options
context:
space:
mode:
authorEduardo Julian2015-05-04 12:20:32 -0400
committerEduardo Julian2015-05-04 12:20:32 -0400
commit99a4eec5bce78ce5262f94a51f2b57ed2507ac46 (patch)
treeaf0696daa04f7ac154843ae60150567b8675fdb1 /source/program.lux
parentda7d3d23227e6d162ff287c8b1ba3f466caafdff (diff)
- 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.
Diffstat (limited to '')
-rw-r--r--source/program.lux6
1 files changed, 6 insertions, 0 deletions
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))))))