From 5d44577c3849a045052dc1c9f0dd7deddd032120 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 1 Jun 2022 21:52:34 -0400 Subject: Extensible import syntax: Part 1 --- lux-ruby/source/program.lux | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'lux-ruby') diff --git a/lux-ruby/source/program.lux b/lux-ruby/source/program.lux index 5479aadb4..2eba7ea14 100644 --- a/lux-ruby/source/program.lux +++ b/lux-ruby/source/program.lux @@ -1,36 +1,36 @@ (.using [library [lux "*" - [program {"+" program:}] + [program (.only program:)] ["[0]" debug] - ["[0]" ffi {"+" import:}] + ["[0]" ffi (.only import:)] ["[0]" meta] [abstract - ["[0]" monad {"+" do}]] + ["[0]" monad (.only do)]] [control ["[0]" maybe] - ["[0]" try {"+" Try}] - ["[0]" exception {"+" exception:}] - ["[0]" io {"+" IO io}] + ["[0]" try (.only Try)] + ["[0]" exception (.only exception:)] + ["[0]" io (.only IO io)] ["[0]" function] [concurrency - ["[0]" async {"+" Async}]] + ["[0]" async (.only Async)]] ["<>" parser ["<[0]>" code]]] [data ["[0]" text ("[1]#[0]" hash) - ["%" format {"+" format}] + ["%" format (.only format)] [encoding ["[0]" utf8]]] [collection - ["[0]" array {"+" Array}] + ["[0]" array (.only Array)] ["[0]" list ("[1]#[0]" functor)]]] ["[0]" macro - [syntax {"+" syntax:}] + [syntax (.only syntax:)] ["^" pattern] ["[0]" template]] [math - [number {"+" hex} + [number (.only hex) ["n" nat] ["i" int] ["[0]" i64]]] @@ -41,18 +41,18 @@ ["_" ruby]] [tool ["[0]" compiler - ["[0]" phase {"+" Operation Phase} ("[1]#[0]" monad)] + ["[0]" phase (.only Operation Phase) ("[1]#[0]" monad)] [reference - [variable {"+" Register}]] + [variable (.only Register)]] [language [lux - [program {"+" Program}] - [generation {"+" Host}] + [program (.only Program)] + [generation (.only Host)] ["[0]" synthesis] [analysis - [macro {"+" Expander}]] + [macro (.only Expander)]] [phase - ["[0]" extension {"+" Extender Handler} + ["[0]" extension (.only Extender Handler) ["[1]/[0]" bundle] ["[0]" analysis "_" ["[1]" ruby]] @@ -63,9 +63,9 @@ ["[0]" ruby ["[0]" runtime]]]]]] [default - ["[0]" platform {"+" Platform}]] + ["[0]" platform (.only Platform)]] [meta - [archive {"+" Archive}] + [archive (.only Archive)] ["[0]" context] ["[0]" cli] ["[0]" packager "_" -- cgit v1.2.3