diff options
author | Eduardo Julian | 2022-03-11 05:52:21 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-03-11 05:52:21 -0400 |
commit | 6766be5427b1788a44e07151e3fabe33ec4f8b37 (patch) | |
tree | 8d8aa5c1d8fd4a9f733f82c48080284ecd4ec31a /lux-r | |
parent | ac2c19d93407b00c89513f0f81e9cbbd1425bd9a (diff) |
Added an easy way to export Lux functionality to host programs (everywhere else).
Diffstat (limited to '')
-rw-r--r-- | lux-ruby/source/program.lux | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/lux-ruby/source/program.lux b/lux-ruby/source/program.lux index 123fa1285..bd3f1763e 100644 --- a/lux-ruby/source/program.lux +++ b/lux-ruby/source/program.lux @@ -972,27 +972,26 @@ (async.future (# world/program.default exit +0))) (def: (lux_compiler it) - (-> Any compiler.Custom) + (-> Any platform.Custom) (undefined)) (program: [service cli.service] - (let [extension ".rb"] - (exec - (do async.monad - [_ (/.compiler ..lux_compiler - (context.ruby (cli.target service)) - ..expander - analysis.bundle - ..platform - generation.bundle - (function.constant extension/bundle.empty) - ..program - [Register _.Expression _.Statement] - ..extender - service - [packager.package - (format (cli.target service) - (# file.default separator) - "program")])] - (..declare_success! [])) - (io.io [])))) + (exec + (do async.monad + [_ (/.compiler ..lux_compiler + (context.ruby (cli.target service)) + ..expander + analysis.bundle + ..platform + generation.bundle + (function.constant extension/bundle.empty) + ..program + [Register _.Expression _.Statement] + ..extender + service + [packager.package + (format (cli.target service) + (# file.default separator) + "program")])] + (..declare_success! [])) + (io.io []))) |