diff options
author | Eduardo Julian | 2019-12-30 03:14:54 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-12-30 03:14:54 -0400 |
commit | 4deb3fc67c9c0cbf04ec8ba7c21b1558b0b415cf (patch) | |
tree | 6cbc48d6fcf8efd9436c065cd26f358915a21feb /stdlib | |
parent | fb7f85d1095cb9ba6a402f18e701a4b14b7657dc (diff) |
Re-located generation extensions for JVM.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/tool/compiler/phase/extension/generation.lux | 10 | ||||
-rw-r--r-- | stdlib/source/lux/tool/compiler/phase/extension/generation/jvm.lux (renamed from stdlib/source/lux/tool/compiler/phase/generation/jvm/extension.lux) | 6 | ||||
-rw-r--r-- | stdlib/source/lux/tool/compiler/phase/extension/generation/jvm/common.lux (renamed from stdlib/source/lux/tool/compiler/phase/generation/jvm/extension/common.lux) | 30 | ||||
-rw-r--r-- | stdlib/source/lux/tool/compiler/phase/extension/generation/jvm/host.lux (renamed from stdlib/source/lux/tool/compiler/phase/generation/jvm/extension/host.lux) | 44 |
4 files changed, 43 insertions, 47 deletions
diff --git a/stdlib/source/lux/tool/compiler/phase/extension/generation.lux b/stdlib/source/lux/tool/compiler/phase/extension/generation.lux deleted file mode 100644 index 467adbf35..000000000 --- a/stdlib/source/lux/tool/compiler/phase/extension/generation.lux +++ /dev/null @@ -1,10 +0,0 @@ -(.module: - [lux #*] - [// - ["." bundle] - [// - [generation (#+ Bundle)]]]) - -(def: #export bundle - Bundle - bundle.empty) diff --git a/stdlib/source/lux/tool/compiler/phase/generation/jvm/extension.lux b/stdlib/source/lux/tool/compiler/phase/extension/generation/jvm.lux index d436d1974..93816d128 100644 --- a/stdlib/source/lux/tool/compiler/phase/generation/jvm/extension.lux +++ b/stdlib/source/lux/tool/compiler/phase/extension/generation/jvm.lux @@ -6,8 +6,10 @@ ["." / #_ ["#." common] ["#." host] - [// - [runtime (#+ Bundle)]]]) + [//// + [generation + [jvm + [runtime (#+ Bundle)]]]]]) (def: #export bundle Bundle diff --git a/stdlib/source/lux/tool/compiler/phase/generation/jvm/extension/common.lux b/stdlib/source/lux/tool/compiler/phase/extension/generation/jvm/common.lux index d57dd6b50..c666c1df5 100644 --- a/stdlib/source/lux/tool/compiler/phase/generation/jvm/extension/common.lux +++ b/stdlib/source/lux/tool/compiler/phase/extension/generation/jvm/common.lux @@ -23,20 +23,22 @@ ["." signed (#+ S4)]] ["." type (#+ Type) [category (#+ Primitive Class)]]]]] - ["." /// - ["#." value] - ["#." runtime (#+ Operation Phase Bundle Handler)] - ["#." function #_ - ["#" abstract]] - ["//#" /// - [generation - [extension (#+ Nullary Unary Binary Trinary Variadic - nullary unary binary trinary variadic)]] - [extension - ["#extension" /] - ["#." bundle]] - ["/#" // - ["#." synthesis (#+ Synthesis %synthesis)]]]]) + [///// + [generation + ["///" jvm #_ + ["#." value] + ["#." runtime (#+ Operation Phase Bundle Handler)] + ["#." function #_ + ["#" abstract]] + ["//#" /// + [generation + [extension (#+ Nullary Unary Binary Trinary Variadic + nullary unary binary trinary variadic)]] + [extension + ["#extension" /] + ["#." bundle]] + ["/#" // + ["#." synthesis (#+ Synthesis %synthesis)]]]]]]) (def: #export (custom [parser handler]) (All [s] diff --git a/stdlib/source/lux/tool/compiler/phase/generation/jvm/extension/host.lux b/stdlib/source/lux/tool/compiler/phase/extension/generation/jvm/host.lux index 84af963d2..6c8253c12 100644 --- a/stdlib/source/lux/tool/compiler/phase/generation/jvm/extension/host.lux +++ b/stdlib/source/lux/tool/compiler/phase/extension/generation/jvm/host.lux @@ -39,28 +39,30 @@ ["." reflection] ["." signature] ["." parser]]]]] - ["." // #_ + [// [common (#+ custom)] - ["/#" // - [runtime (#+ Operation Bundle Handler)] - ["#." reference] - [function - [field - [variable - ["." foreign]]]] - ["//#" /// - [generation - [extension (#+ Nullary Unary Binary Trinary Variadic - nullary unary binary trinary variadic)]] - [extension - ["#." bundle] - [analysis - ["/" jvm]]] - ["/#" // - ["#." reference (#+ Variable)] - [analysis (#+ Environment)] - ["#." synthesis (#+ Synthesis Path %synthesis)] - ["#." generation]]]]]) + [//// + [generation + ["///" jvm + [runtime (#+ Operation Bundle Handler)] + ["#." reference] + [function + [field + [variable + ["." foreign]]]] + ["//#" /// + [generation + [extension (#+ Nullary Unary Binary Trinary Variadic + nullary unary binary trinary variadic)]] + [extension + ["#." bundle] + [analysis + ["/" jvm]]] + ["/#" // + ["#." reference (#+ Variable)] + [analysis (#+ Environment)] + ["#." synthesis (#+ Synthesis Path %synthesis)] + ["#." generation]]]]]]]) (template [<name> <0> <1>] [(def: <name> |