aboutsummaryrefslogtreecommitdiff
path: root/lux-python/source
diff options
context:
space:
mode:
Diffstat (limited to 'lux-python/source')
-rw-r--r--lux-python/source/program.lux57
1 files changed, 29 insertions, 28 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index a14949e61..cf4398f89 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -1,7 +1,7 @@
(.require
[library
[lux (.except)
- [program (.only program:)]
+ [program (.only program)]
["[0]" ffi (.only import)]
["[0]" debug]
[abstract
@@ -576,30 +576,31 @@
(-> Any platform.Custom)
(undefined))
-(program: [service cli.service]
- (let [extension ".py"]
- (exec
- (do async.monad
- [_ (/.compiler ..lux_compiler
- (context.python (cli.target service))
- ..expander
- analysis.bundle
- ..platform
- generation.bundle
- (function.constant extension/bundle.empty)
- ..program
- [Register
- (type_literal (_.Expression Any))
- (type_literal (_.Statement Any))]
- ..extender
- service
- [(packager.package (is (_.Statement Any) (_.manual ""))
- _.code
- _.then
- ..scope)
- (format (cli.target service)
- (at file.default separator)
- "program"
- extension)])]
- (..declare_success! []))
- (io.io []))))
+(def _
+ (program [service cli.service]
+ (let [extension ".py"]
+ (exec
+ (do async.monad
+ [_ (/.compiler ..lux_compiler
+ (context.python (cli.target service))
+ ..expander
+ analysis.bundle
+ ..platform
+ generation.bundle
+ (function.constant extension/bundle.empty)
+ ..program
+ [Register
+ (type_literal (_.Expression Any))
+ (type_literal (_.Statement Any))]
+ ..extender
+ service
+ [(packager.package (is (_.Statement Any) (_.manual ""))
+ _.code
+ _.then
+ ..scope)
+ (format (cli.target service)
+ (at file.default separator)
+ "program"
+ extension)])]
+ (..declare_success! []))
+ (io.io [])))))