diff options
author | Eduardo Julian | 2015-05-04 12:20:32 -0400 |
---|---|---|
committer | Eduardo Julian | 2015-05-04 12:20:32 -0400 |
commit | 99a4eec5bce78ce5262f94a51f2b57ed2507ac46 (patch) | |
tree | af0696daa04f7ac154843ae60150567b8675fdb1 /source/program.lux | |
parent | da7d3d23227e6d162ff287c8b1ba3f466caafdff (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 'source/program.lux')
-rw-r--r-- | source/program.lux | 6 |
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)))))) |