-
Notifications
You must be signed in to change notification settings - Fork 4
/
re.sig
executable file
·33 lines (22 loc) · 948 Bytes
/
re.sig
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
(*======================================================================
A core-functionality signature for regexp-based value matching.
=======================================================================*)
signature RE =
sig
type value
type pat
type constraint
type tag0 = constraint GeneralRE.tag0
type RE0 = (pat,constraint) GeneralRE.RE0
val reToString: RE0 -> string
val tt: tag0
val concatLst: RE0 list -> RE0
val inside_constraint: bool ref
val match: RE0 * int *
value list *
value Symbol.mapping *
(pat * value -> value Symbol.mapping option) *
((constraint * (Symbol.symbol list * value Symbol.mapping * Symbol.symbol list * value list Symbol.mapping)) -> bool) *
(Symbol.symbol -> value option)
-> ((Symbol.symbol list * value Symbol.mapping * Symbol.symbol list * value list Symbol.mapping) * real) option
end