aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
authorEduardo Julian2022-04-08 05:42:36 -0400
committerEduardo Julian2022-04-08 05:42:36 -0400
commit0d909187d5b9effcd08f533d50af7d29c0d6bfd8 (patch)
treec50f12c5e47e3db90c3a701b54ee9953da942210 /lux-python
parente5e4c2aff562e5c01fefb808d1d68a40f29c9cc5 (diff)
De-sigil-ification: $
Diffstat (limited to '')
-rw-r--r--lux-python/source/program.lux32
1 files changed, 16 insertions, 16 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index 718cb9d95..cc7ef2162 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -537,16 +537,16 @@
(def: (program context program)
(Program (_.Expression Any) (_.Statement Any))
- ($_ _.then
- (_.import "sys")
- (_.when (_.= (_.string "__main__") (_.var "__name__"))
- (_.statement (_.apply/* (list (|> (_.var "sys") (_.the "argv")
- ... The first entry in the list will be the program.py file itself
- ... so, it must be removed so only the program's arguments are left.
- (_.slice_from (_.int +1))
- runtime.lux::program_args)
- _.none)
- program)))))
+ (all _.then
+ (_.import "sys")
+ (_.when (_.= (_.string "__main__") (_.var "__name__"))
+ (_.statement (_.apply/* (list (|> (_.var "sys") (_.the "argv")
+ ... The first entry in the list will be the program.py file itself
+ ... so, it must be removed so only the program's arguments are left.
+ (_.slice_from (_.int +1))
+ runtime.lux::program_args)
+ _.none)
+ program)))))
(def: (declare_success! _)
(-> Any (Async Any))
@@ -562,12 +562,12 @@
old_limit current_limit
new_limit (_.bit_shl (_.int +2) old_limit)]
(<| (_.comment "-*- coding: utf-8 -*-")
- ($_ _.then
- (; (_.do "setrecursionlimit" (list new_limit) $sys))
- ... (; (_.do "stack_size" (list current_limit) $threading))
- (_.def @program (list) body)
- (; (_.apply/* (list) @program))
- ))))
+ (all _.then
+ (; (_.do "setrecursionlimit" (list new_limit) $sys))
+ ... (; (_.do "stack_size" (list current_limit) $threading))
+ (_.def @program (list) body)
+ (; (_.apply/* (list) @program))
+ ))))
(def: (lux_compiler it)
(-> Any platform.Custom)