diff options
author | Eduardo Julian | 2017-12-05 16:40:15 -0400 |
---|---|---|
committer | Eduardo Julian | 2017-12-05 16:40:15 -0400 |
commit | 8a51602b3507a18a5ffae1710ba4e915cf31fe39 (patch) | |
tree | 746c7128299fccf8369c9c7c88015ea30967298e /new-luxc/source/luxc/lang/analysis/procedure.lux | |
parent | 7e18f589a05bde28b3f710d92f72b7bd6b6e144f (diff) |
- All analysis procedures have been turned into extensions.
Diffstat (limited to 'new-luxc/source/luxc/lang/analysis/procedure.lux')
-rw-r--r-- | new-luxc/source/luxc/lang/analysis/procedure.lux | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/new-luxc/source/luxc/lang/analysis/procedure.lux b/new-luxc/source/luxc/lang/analysis/procedure.lux deleted file mode 100644 index 25e1be335..000000000 --- a/new-luxc/source/luxc/lang/analysis/procedure.lux +++ /dev/null @@ -1,26 +0,0 @@ -(.module: - lux - (lux (control [monad #+ do] - ["ex" exception #+ exception:]) - (data [maybe] - [text] - text/format - (coll [dict]))) - (luxc ["&" lang] - (lang ["la" analysis])) - (/ ["/." common] - ["/." host])) - -(exception: #export Unknown-Procedure) - -(def: procedures - /common.Bundle - (|> /common.procedures - (dict.merge /host.procedures))) - -(def: #export (analyse-procedure analyse eval proc-name proc-args) - (-> &.Analyser &.Eval Text (List Code) (Meta la.Analysis)) - (<| (maybe.default (&.throw Unknown-Procedure (%t proc-name))) - (do maybe.Monad<Maybe> - [proc (dict.get proc-name procedures)] - (wrap ((proc proc-name) analyse eval proc-args))))) |