From e53c1a090eb9cfac3cb23d10d981648d02518ed1 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 13 Aug 2021 04:18:57 -0400 Subject: Made program: specify its bindings the same way as syntax:. --- lux-python/source/program.lux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lux-python') diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index 6ae2a4aa2..547a1cd24 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -230,7 +230,7 @@ (for {@.old (as_is (def: (call_macro inputs lux macro) (-> (List Code) Lux org/python/core/PyFunction (Try (Try [Lux (List Code)]))) - (:assume + (:expected (do try.monad [expansion (org/python/core/PyFunction::__call__ (|> (ffi.array org/python/core/PyObject 2) (ffi.array_write 0 (..to_host inputs)) @@ -445,7 +445,7 @@ @.python (def: (extender phase_wrapper handler) (-> platform.Phase_Wrapper Extender) - (:assume handler))}) + (:expected handler))}) (def: (phase_wrapper archive) (-> Archive (runtime.Operation platform.Phase_Wrapper)) @@ -495,7 +495,7 @@ (; (_.apply/* @program (list))) )))) -(program: [{service /cli.service}] +(program: [service /cli.service] (let [extension ".py"] (exec (do async.monad [_ (/.compiler {#/static.host @.python -- cgit v1.2.3