blob: d8778844fc887817e60357a5e72852f53d476fd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(;module:
lux
(lux (control monad)
(data [text]
text/format
(coll ["D" dict])
maybe))
(luxc ["&" base]
(lang ["la" analysis #+ Analysis]))
(. ["&&;" common]))
(def: #export (analyse-procedure analyse proc-name proc-args)
(-> &;Analyser Text (List Code) (Lux Analysis))
(default (&;fail (format "Unknown procedure: " (%t proc-name)))
(do Monad<Maybe>
[proc (D;get proc-name &&common;procedures)]
(wrap (proc analyse proc-args)))))
|