aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/runtime.lux
diff options
context:
space:
mode:
authorEduardo Julian2022-04-07 03:27:59 -0400
committerEduardo Julian2022-04-07 03:27:59 -0400
commit9224e54bf175ebe13c3fae42f04b649413c737e7 (patch)
treedab2b19f79e79020792ee0bfe0fb6abe522639a3 /stdlib/source/program/aedifex/runtime.lux
parent7542b0addd9eaf01dd5f1c4c8a39b67f51a4bd06 (diff)
De-sigil-ification: &
Diffstat (limited to 'stdlib/source/program/aedifex/runtime.lux')
-rw-r--r--stdlib/source/program/aedifex/runtime.lux23
1 files changed, 13 insertions, 10 deletions
diff --git a/stdlib/source/program/aedifex/runtime.lux b/stdlib/source/program/aedifex/runtime.lux
index 57d18d265..7ba73519d 100644
--- a/stdlib/source/program/aedifex/runtime.lux
+++ b/stdlib/source/program/aedifex/runtime.lux
@@ -8,7 +8,8 @@
["[0]" text
["%" format {"+" format}]]
[collection
- ["[0]" list ("[1]#[0]" monoid)]]]
+ ["[0]" list ("[1]#[0]" monoid)]
+ ["[0]" dictionary {"+" Dictionary}]]]
[macro
["[0]" template]]
[world
@@ -16,28 +17,30 @@
(type: .public Runtime
(Record
- [#program Text
+ [#environment (Dictionary Text Text)
+ #program Text
#parameters (List Text)]))
(def: .public equivalence
(Equivalence Runtime)
($_ product.equivalence
+ (dictionary.equivalence text.equivalence)
text.equivalence
(list.equivalence text.equivalence)
))
-(template [<name> <command> <parameters>]
+(template [<name> <command> <environment> <parameters>]
[(def: .public <name>
Runtime
- [#program <command>
+ [#environment (dictionary.of_list text.hash (`` (list (~~ (template.spliced <environment>)))))
+ #program <command>
#parameters (`` (list (~~ (template.spliced <parameters>))))])]
- [default_java "java" ["--add-opens" "java.base/java.lang=ALL-UNNAMED" "-jar"]]
- [default_js "node" ["--stack_size=8192"]]
- [default_python "python3" []]
- [default_lua "lua" []]
- ... [default_ruby "RUBY_THREAD_VM_STACK_SIZE=15700000 ruby" []]
- [default_ruby "ruby" []]
+ [default_java "java" [] ["--add-opens" "java.base/java.lang=ALL-UNNAMED" "-jar"]]
+ [default_js "node" [] ["--stack_size=8192"]]
+ [default_python "python3" [] []]
+ [default_lua "lua" [] []]
+ [default_ruby "ruby" [["RUBY_THREAD_VM_STACK_SIZE" "15700000"]] []]
)
(def: .public (for runtime path)