aboutsummaryrefslogtreecommitdiff
path: root/lux-r/source
diff options
context:
space:
mode:
authorEduardo Julian2022-06-01 21:52:34 -0400
committerEduardo Julian2022-06-01 21:52:34 -0400
commit5d44577c3849a045052dc1c9f0dd7deddd032120 (patch)
treeb0e00801734720e9f985c7dfa239aaa0bdea7bcd /lux-r/source
parent659537b4ec859f1e705cdd1f82da29ab1a662d94 (diff)
Extensible import syntax: Part 1
Diffstat (limited to 'lux-r/source')
-rw-r--r--lux-r/source/program.lux34
-rw-r--r--lux-r/source/test/program.lux20
2 files changed, 27 insertions, 27 deletions
diff --git a/lux-r/source/program.lux b/lux-r/source/program.lux
index 2f477efcb..7e7a6ed88 100644
--- a/lux-r/source/program.lux
+++ b/lux-r/source/program.lux
@@ -1,33 +1,33 @@
(.using
[lux "*"
- [program {"+" program:}]
+ [program (.only program:)]
["[0]" ffi]
["[0]" debug]
[abstract
- ["[0]" monad {"+" do}]]
+ ["[0]" monad (.only do)]]
[control
["[0]" pipe]
["[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)]
[concurrency
- ["[0]" promise {"+" Promise}]]
+ ["[0]" promise (.only Promise)]]
[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]" macro
- [syntax {"+" syntax:}]
+ [syntax (.only syntax:)]
["[0]" template]
["[0]" code]]
[math
- [number {"+" hex}
+ [number (.only hex)
["n" nat]
["[0]" i64]]]
["[0]" world "_"
@@ -37,18 +37,18 @@
["_" r]]
[tool
[compiler
- [phase {"+" Operation Phase}]
+ [phase (.only Operation Phase)]
[reference
- [variable {"+" Register}]]
+ [variable (.only Register)]]
[language
[lux
- [program {"+" Program}]
- [generation {"+" Context Host}]
+ [program (.only Program)]
+ [generation (.only Context 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]" r]]
@@ -59,7 +59,7 @@
["[0]" r
["[0]" runtime]]]]]]
[default
- ["[0]" platform {"+" Platform}]]
+ ["[0]" platform (.only Platform)]]
[meta
["[0]" packager "_"
["[1]" script]]]]]]
diff --git a/lux-r/source/test/program.lux b/lux-r/source/test/program.lux
index 112225a56..1f9dcda44 100644
--- a/lux-r/source/test/program.lux
+++ b/lux-r/source/test/program.lux
@@ -1,14 +1,14 @@
(.using
- [lux "*"
- ["_" test {"+" Test}]
- [control
- ["[0]" io]
- [parser
- [cli {"+" program:}]]]]
- [spec
- ["[0]" compositor]]
- [\\
- ["[0]" /]])
+ [lux "*"
+ ["_" test (.only Test)]
+ [control
+ ["[0]" io]
+ [parser
+ [cli (.only program:)]]]]
+ [spec
+ ["[0]" compositor]]
+ [\\
+ ["[0]" /]])
(program: args
(<| io.io