blob: d8f841e13638cdba74bfb000677bbd2610e7dd65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
(.module:
[lux #*
[data
[format
["_" binary (#+ Format)]]]])
(def: definition
(Format Definition)
($_ _.seq _.type _.code _.any))
(def: alias
(Format [Text Text])
(_.seq _.text _.text))
## TODO: Remove #module-hash, #imports & #module-state ASAP.
## TODO: Not just from this parser, but from the lux.Module type.
(def: #export module
(Format Module)
($_ _.seq
## #module-hash
(_.ignore +0)
## #module-aliases
(_.list ..alias)
## #definitions
(_.list (_.seq _.text ..definition))
## #imports
(_.list _.text)
## #tags
(_.ignore (list))
## #types
(_.ignore (list))
## #module-annotations
(_.maybe _.code)
## #module-state
(_.ignore #.Cached)))
|