diff options
Diffstat (limited to '')
-rw-r--r-- | lux-r/source/luxc/lang/synthesis/variable.lux | 2 | ||||
-rw-r--r-- | lux-r/source/program.lux | 102 | ||||
-rw-r--r-- | lux-r/source/test/program.lux | 6 | ||||
-rw-r--r-- | lux-ruby/source/program.lux | 124 |
4 files changed, 117 insertions, 117 deletions
diff --git a/lux-r/source/luxc/lang/synthesis/variable.lux b/lux-r/source/luxc/lang/synthesis/variable.lux index ecbca7062..82478a2d6 100644 --- a/lux-r/source/luxc/lang/synthesis/variable.lux +++ b/lux-r/source/luxc/lang/synthesis/variable.lux @@ -5,7 +5,7 @@ ["s" set]))) (luxc (lang ["la" analysis] ["ls" synthesis] - [".L" variable {"+" [Variable]}]))) + ["[0]L" variable {"+" [Variable]}]))) (def: (bound-vars path) (-> ls.Path (List Variable)) diff --git a/lux-r/source/program.lux b/lux-r/source/program.lux index 78afc9e3e..474d88d8a 100644 --- a/lux-r/source/program.lux +++ b/lux-r/source/program.lux @@ -1,38 +1,38 @@ (.module: [lux "*" [program {"+" [program:]}] - ["." ffi] - ["." debug] + ["[0]" ffi] + ["[0]" debug] [abstract - ["." monad {"+" [do]}]] + ["[0]" monad {"+" [do]}]] [control [pipe {"+" [exec> case> new>]}] - ["." maybe] - ["." try {"+" [Try]}] - ["." exception {"+" [exception:]}] - ["." io {"+" [IO io]}] + ["[0]" maybe] + ["[0]" try {"+" [Try]}] + ["[0]" exception {"+" [exception:]}] + ["[0]" io {"+" [IO io]}] [concurrency - ["." promise {"+" [Promise]}]] + ["[0]" promise {"+" [Promise]}]] [parser - ["<.>" code]]] + ["<[0]>" code]]] [data - ["." text ("#\." hash) + ["[0]" text ("[1]\[0]" hash) ["%" format {"+" [format]}] [encoding - ["." utf8]]] + ["[0]" utf8]]] [collection - ["." array {"+" [Array]}]]] - ["." macro + ["[0]" array {"+" [Array]}]]] + ["[0]" macro [syntax {"+" [syntax:]}] - ["." template] - ["." code]] + ["[0]" template] + ["[0]" code]] [math [number {"+" [hex]} ["n" nat] - ["." i64]]] - ["." world "_" - ["." file] - ["#/." program]] + ["[0]" i64]]] + ["[0]" world "_" + ["[0]" file] + ["[1]/[0]" program]] ["@" target ["_" r]] [tool @@ -44,61 +44,61 @@ [lux [program {"+" [Program]}] [generation {"+" [Context Host]}] - ["." synthesis] + ["[0]" synthesis] [analysis [macro {"+" [Expander]}]] [phase - ["." extension {"+" [Extender Handler]} - ["#/." bundle] - ["." analysis "_" - ["#" r]] - ["." generation "_" - ["#" r]]] + ["[0]" extension {"+" [Extender Handler]} + ["[1]/[0]" bundle] + ["[0]" analysis "_" + ["[1]" r]] + ["[0]" generation "_" + ["[1]" r]]] [generation - ["." reference] - ["." r - ["." runtime]]]]]] + ["[0]" reference] + ["[0]" r + ["[0]" runtime]]]]]] [default - ["." platform {"+" [Platform]}]] + ["[0]" platform {"+" [Platform]}]] [meta - ["." packager "_" - ["#" script]]]]]] + ["[0]" packager "_" + ["[1]" script]]]]]] [program ["/" compositor - ["#." cli] - ["#." static]]]) + ["[1][0]" cli] + ["[1][0]" static]]]) (ffi.import: java/lang/String) (ffi.import: (java/lang/Class a) - ["#::." + ["[1]::[0]" ("static" forName [java/lang/String] "try" (java/lang/Class java/lang/Object))]) (ffi.import: java/lang/Object - ["#::." + ["[1]::[0]" (toString [] java/lang/String) (getClass [] (java/lang/Class java/lang/Object))]) (ffi.import: java/lang/Long - ["#::." + ["[1]::[0]" (intValue [] java/lang/Integer)]) (ffi.import: java/lang/Integer - ["#::." + ["[1]::[0]" (longValue [] long)]) (ffi.import: java/lang/Number - ["#::." + ["[1]::[0]" (intValue [] java/lang/Integer) (longValue [] long) (doubleValue [] double)]) (ffi.import: org/renjin/sexp/SEXP - ["#::." + ["[1]::[0]" (asInt [] int)]) (ffi.import: org/renjin/sexp/AttributeMap - ["#::." + ["[1]::[0]" ("static" EMPTY org/renjin/sexp/AttributeMap)]) (ffi.import: org/renjin/sexp/AbstractSEXP) @@ -106,17 +106,17 @@ (ffi.import: org/renjin/sexp/IntArrayVector) (ffi.import: org/renjin/sexp/Logical - ["#::." + ["[1]::[0]" (toBooleanStrict [] boolean)]) (ffi.import: org/renjin/sexp/LogicalVector - ["#::." + ["[1]::[0]" (asLogical [] org/renjin/sexp/Logical)]) (ffi.import: org/renjin/sexp/LogicalArrayVector) (ffi.import: org/renjin/sexp/StringVector - ["#::." + ["[1]::[0]" (asString [] java/lang/String)]) (ffi.import: org/renjin/sexp/StringArrayVector) @@ -124,7 +124,7 @@ (ffi.import: org/renjin/sexp/Null) (ffi.import: org/renjin/sexp/ListVector - ["#::." + ["[1]::[0]" (get "as" get_index [int] org/renjin/sexp/SEXP) (get "as" get_field [java/lang/String] org/renjin/sexp/SEXP) (length [] int)]) @@ -132,7 +132,7 @@ (ffi.import: org/renjin/sexp/PairList) (ffi.import: org/renjin/sexp/PairList$Builder - ["#::." + ["[1]::[0]" (new []) (add [org/renjin/sexp/SEXP] org/renjin/sexp/PairList$Builder) (build [] org/renjin/sexp/PairList)]) @@ -142,24 +142,24 @@ (ffi.import: org/renjin/sexp/Environment) (ffi.import: org/renjin/sexp/FunctionCall - ["#::." + ["[1]::[0]" (new [org/renjin/sexp/SEXP org/renjin/sexp/PairList]) (eval [org/renjin/eval/Context org/renjin/sexp/Environment] "try" org/renjin/sexp/SEXP)]) (ffi.import: org/renjin/sexp/Closure - ["#::." + ["[1]::[0]" (getEnclosingEnvironment [] org/renjin/sexp/Environment)]) (ffi.import: javax/script/ScriptEngine - ["#::." + ["[1]::[0]" (eval [java/lang/String] "try" java/lang/Object)]) (ffi.import: org/renjin/script/RenjinScriptEngine - ["#::." + ["[1]::[0]" (getRuntimeContext [] org/renjin/eval/Context)]) (ffi.import: org/renjin/script/RenjinScriptEngineFactory - ["#::." + ["[1]::[0]" (new []) (getScriptEngine [] org/renjin/script/RenjinScriptEngine)]) diff --git a/lux-r/source/test/program.lux b/lux-r/source/test/program.lux index e8cf0df53..53463255a 100644 --- a/lux-r/source/test/program.lux +++ b/lux-r/source/test/program.lux @@ -2,13 +2,13 @@ [lux "*" ["_" test {"+" [Test]}] [control - ["." io] + ["[0]" io] [parser [cli {"+" [program:]}]]]] [spec - ["." compositor]] + ["[0]" compositor]] {1 - ["." /]}) + ["[0]" /]}) (program: args (<| io.io diff --git a/lux-ruby/source/program.lux b/lux-ruby/source/program.lux index 8733c42d4..8c2cb3480 100644 --- a/lux-ruby/source/program.lux +++ b/lux-ruby/source/program.lux @@ -2,126 +2,126 @@ [library [lux "*" [program {"+" [program:]}] - ["." debug] - ["." ffi {"+" [import:]}] - ["." meta] + ["[0]" debug] + ["[0]" ffi {"+" [import:]}] + ["[0]" meta] [abstract - ["." monad {"+" [do]}]] + ["[0]" monad {"+" [do]}]] [control [pipe {"+" [new>]}] - ["." maybe] - ["." try {"+" [Try]}] - ["." exception {"+" [exception:]}] - ["." io {"+" [IO io]}] - ["." function] + ["[0]" maybe] + ["[0]" try {"+" [Try]}] + ["[0]" exception {"+" [exception:]}] + ["[0]" io {"+" [IO io]}] + ["[0]" function] [concurrency - ["." async {"+" [Async]}]] + ["[0]" async {"+" [Async]}]] ["<>" parser - ["<.>" code]]] + ["<[0]>" code]]] [data - ["." text ("#\." hash) + ["[0]" text ("[1]\[0]" hash) ["%" format {"+" [format]}] [encoding - ["." utf8]]] + ["[0]" utf8]]] [collection - ["." array {"+" [Array]}] - ["." list]]] - ["." macro + ["[0]" array {"+" [Array]}] + ["[0]" list]]] + ["[0]" macro [syntax {"+" [syntax:]}] - ["." template] - ["." code]] + ["[0]" template] + ["[0]" code]] [math [number {"+" [hex]} ["n" nat] ["i" int] - ["." i64]]] - ["." world "_" - ["." file] - ["#/." program]] + ["[0]" i64]]] + ["[0]" world "_" + ["[0]" file] + ["[1]/[0]" program]] ["@" target ["_" ruby]] [tool [compiler - ["." phase {"+" [Operation Phase]}] + ["[0]" phase {"+" [Operation Phase]}] [reference [variable {"+" [Register]}]] [language [lux [program {"+" [Program]}] [generation {"+" [Context Host]}] - ["." synthesis] + ["[0]" synthesis] [analysis [macro {"+" [Expander]}]] [phase - ["." extension {"+" [Extender Handler]} - ["#/." bundle] - ["." analysis "_" - ["#" ruby]] - ["." generation "_" - ["#" ruby]]] + ["[0]" extension {"+" [Extender Handler]} + ["[1]/[0]" bundle] + ["[0]" analysis "_" + ["[1]" ruby]] + ["[0]" generation "_" + ["[1]" ruby]]] [generation - ["." reference] - ["." ruby - ["." runtime]]]]]] + ["[0]" reference] + ["[0]" ruby + ["[0]" runtime]]]]]] [default - ["." platform {"+" [Platform]}]] + ["[0]" platform {"+" [Platform]}]] [meta [archive {"+" [Archive]}] - ["." packager "_" - ["#" script]]]]]]] + ["[0]" packager "_" + ["[1]" script]]]]]]] [program ["/" compositor - ["/." cli] - ["/." static]]]) + ["/[0]" cli] + ["/[0]" static]]]) (import: java/lang/String) (import: (java/lang/Class a)) (import: java/lang/Object - ["#::." + ["[1]::[0]" (toString [] java/lang/String) (getClass [] (java/lang/Class java/lang/Object))]) (import: java/lang/Integer - ["#::." + ["[1]::[0]" (longValue [] java/lang/Long)]) (import: java/lang/Long - ["#::." + ["[1]::[0]" (intValue [] java/lang/Integer)]) (import: org/jruby/RubyString - ["#::." + ["[1]::[0]" ("static" newInternalFromJavaExternal [org/jruby/Ruby java/lang/String] org/jruby/RubyString) (asJavaString [] java/lang/String)]) (import: org/jruby/RubySymbol - ["#::." + ["[1]::[0]" (asJavaString [] java/lang/String)]) (import: org/jruby/runtime/builtin/IRubyObject) (import: org/jruby/Ruby - ["#::." + ["[1]::[0]" (getCurrentContext [] org/jruby/runtime/ThreadContext) (getNil [] org/jruby/runtime/builtin/IRubyObject)]) (import: org/jruby/RubyClass) (import: org/jruby/RubyArray - ["#::." + ["[1]::[0]" (getLength [] int) (get [int] "?" Object)]) (import: org/jruby/RubyHash - ["#::." + ["[1]::[0]" (get [java/lang/Object] "?" java/lang/Object)]) (import: org/jruby/runtime/ThreadContext) (import: org/jruby/RubyRange - ["#::." + ["[1]::[0]" (first [org/jruby/runtime/ThreadContext] org/jruby/runtime/builtin/IRubyObject) (size [org/jruby/runtime/ThreadContext] org/jruby/runtime/builtin/IRubyObject)]) @@ -129,7 +129,7 @@ (getValue [] java/lang/Object)) (import: program/StructureValue - ["#::." + ["[1]::[0]" (getValue [] java/lang/Object)]) (syntax: (method_inputs [input_classes (<code>.tuple (<>.some <code>.any))]) @@ -146,11 +146,11 @@ (import: org/jruby/runtime/builtin/InternalVariables) (import: org/jruby/embed/internal/LocalContextProvider - ["#::." + ["[1]::[0]" (getRuntime [] org/jruby/Ruby)]) (import: org/jruby/embed/ScriptingContainer - ["#::." + ["[1]::[0]" (new []) (runScriptlet [java/lang/String] "try" "?" java/lang/Object) (getProvider [] org/jruby/embed/internal/LocalContextProvider)]) @@ -172,58 +172,58 @@ (!ruby_runtime)) (import: org/jruby/java/proxies/JavaProxy - ["#::." + ["[1]::[0]" (new [org/jruby/Ruby org/jruby/RubyClass java/lang/Object]) (getObject [] java/lang/Object)]) (import: org/jruby/internal/runtime/methods/DynamicMethod) (import: org/jruby/runtime/callsite/CacheEntry - ["#::." + ["[1]::[0]" (new [org/jruby/internal/runtime/methods/DynamicMethod int])]) (import: org/jruby/RubyFixnum - ["#::." + ["[1]::[0]" (new [org/jruby/Ruby long]) (getLongValue [] long)]) (import: org/jruby/RubyFloat - ["#::." + ["[1]::[0]" (new [org/jruby/Ruby double])]) (import: org/jruby/RubyBoolean - ["#::." + ["[1]::[0]" ("static" newBoolean [org/jruby/Ruby boolean] org/jruby/RubyBoolean)]) (import: org/jruby/RubyNil - ["#::." + ["[1]::[0]" (new [org/jruby/Ruby])]) (import: org/jruby/runtime/Block$Type - ["#::." + ["[1]::[0]" ("enum" PROC)]) (import: org/jruby/runtime/Signature - ["#::." + ["[1]::[0]" ("static" THREE_ARGUMENTS org/jruby/runtime/Signature)]) (import: org/jruby/parser/StaticScope) (import: org/jruby/parser/StaticScopeFactory - ["#::." + ["[1]::[0]" (new [org/jruby/Ruby]) (getDummyScope [] org/jruby/parser/StaticScope)]) (import: org/jruby/runtime/BlockBody) (import: org/jruby/runtime/Block - ["#::." + ["[1]::[0]" ("static" NULL_BLOCK org/jruby/runtime/Block) (type org/jruby/runtime/Block$Type) (getBody [] org/jruby/runtime/BlockBody)]) (import: org/jruby/RubyProc - ["#::." + ["[1]::[0]" ("static" newProc [org/jruby/Ruby org/jruby/runtime/Block org/jruby/runtime/Block$Type] org/jruby/RubyProc) (call [org/jruby/runtime/ThreadContext [org/jruby/runtime/builtin/IRubyObject]] "try" org/jruby/runtime/builtin/IRubyObject)]) @@ -359,7 +359,7 @@ java/lang/Object::toString)])) (import: java/util/Arrays - ["#::." + ["[1]::[0]" ("static" [t] copyOfRange [[t] int int] [t])]) (def: (lux_wrapper_access lux_structure value) |