aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/experiment
diff options
context:
space:
mode:
authorEduardo Julian2022-02-10 03:34:29 -0400
committerEduardo Julian2022-02-10 03:34:29 -0400
commit469b171e5793422a4dbd27f4f2fab8a261c9ccf9 (patch)
tree6a6b206d8e35592f540d67ec9ecef73e85379837 /stdlib/source/experiment
parent2ea0bda182d76015df4f53ed82efd6f37e93cba6 (diff)
Finishing the meta-compiler [Part 2]
Diffstat (limited to 'stdlib/source/experiment')
-rw-r--r--stdlib/source/experiment/compiler.lux15
1 files changed, 15 insertions, 0 deletions
diff --git a/stdlib/source/experiment/compiler.lux b/stdlib/source/experiment/compiler.lux
new file mode 100644
index 000000000..f17f6c499
--- /dev/null
+++ b/stdlib/source/experiment/compiler.lux
@@ -0,0 +1,15 @@
+(.using
+ [library
+ [lux "*"
+ [control
+ ["[0]" try]]
+ [tool
+ ["[0]" compiler {"+" Custom}]]]])
+
+(def: .public (dummy parameters)
+ (Custom Nat [] [])
+ {try.#Success
+ [0 (function (_ input)
+ [compiler.#dependencies (list)
+ compiler.#process (function (_ state archive)
+ {try.#Failure "YOLO"})])]})