diff options
Diffstat (limited to 'lux-python/source')
-rw-r--r-- | lux-python/source/program.lux | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index cf4398f89..8cbe4e0e4 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -29,10 +29,10 @@ ["[0]" i64]]] [meta ["[0]" static] + ["[0]" code] [macro ["^" pattern] - ["[0]" template] - ["[0]" code]] + ["[0]" template]] ["@" target (.only) ["_" python]] ["[0]" compiler @@ -56,7 +56,8 @@ [generation ["[0]" reference] ["[0]" python (.only) - ["[0]" runtime]]]]]] + ["[0]" runtime] + ["[1]/[0]" reference]]]]]] [default ["[0]" platform (.only Platform)]] [meta @@ -68,7 +69,7 @@ ["[1]" script]]]]] ["[0]" world ["[0]" file] - ["[1]/[0]" program]]]] + ["[1]/[0]" environment]]]] [program ["/" compositor]]) @@ -538,7 +539,7 @@ platform.#phase_wrapper ..phase_wrapper platform.#write (|>> _.code (at utf8.codec encoded))]))) -(def (program context program) +(def (lux_program context program) (Program (_.Expression Any) (_.Statement Any)) (all _.then (_.import "sys") @@ -553,7 +554,7 @@ (def (declare_success! _) (-> Any (Async Any)) - (async.future (at world/program.default exit +0))) + (async.future (at world/environment.default exit +0))) (def (scope body) (-> (_.Statement Any) (_.Statement Any)) @@ -588,7 +589,8 @@ ..platform generation.bundle (function.constant extension/bundle.empty) - ..program + ..lux_program + (reference.constant python/reference.system) [Register (type_literal (_.Expression Any)) (type_literal (_.Statement Any))] |