TranRegSet
Module
signature TRAN_REG_SET
structure TranRegSet
:> TRAN_REG_SET
This module provides operations on finite sets of regular expression transitions, i.e., values of type
that are standard in the sense that they are compatible with TranReg
.tran_reg
Set
.set
TranReg
.compare
. All values of type TranReg.tran_reg Set.set
will implicitly be assumed/required to be standard.
val memb : TranReg.tran_reg * TranReg.tran_reg Set.set -> bool
val fromList : TranReg.tran_reg list -> TranReg.tran_reg Set.set
val compare : TranReg.tran_reg Set.set Sort.total_ordering
val subset : TranReg.tran_reg Set.set * TranReg.tran_reg Set.set -> bool
val equal : TranReg.tran_reg Set.set * TranReg.tran_reg Set.set -> bool
val map : ('a -> TranReg.tran_reg) -> 'a Set.set -> TranReg.tran_reg Set.set
val mapFromList : ('a -> TranReg.tran_reg) -> 'a list -> TranReg.tran_reg Set.set
val union : TranReg.tran_reg Set.set * TranReg.tran_reg Set.set
-> TranReg.tran_reg Set.set
val genUnion : TranReg.tran_reg Set.set list -> TranReg.tran_reg Set.set
val inter : TranReg.tran_reg Set.set * TranReg.tran_reg Set.set
-> TranReg.tran_reg Set.set
val genInter : TranReg.tran_reg Set.set list -> TranReg.tran_reg Set.set
val minus : TranReg.tran_reg Set.set * TranReg.tran_reg Set.set
-> TranReg.tran_reg Set.set
val inputFromLabToks : (int * Lex.tok) list
-> TranReg.tran_reg Set.set * (int * Lex.tok) list
val fromString : string -> TranReg.tran_reg Set.set
val input : string -> TranReg.tran_reg Set.set
val toPP : TranReg.tran_reg Set.set -> PP.pp
val toString : TranReg.tran_reg Set.set -> string
val output : string * TranReg.tran_reg Set.set -> unit
memb(tran, trans)
tran
is a member of trans
.
fromList trans
trans
.
compare
Set
.compare
TranReg
.compare
.
subset(tran1s, tran2s)
tran1s
is a subset of tran2s
.
equal(tran1s, tran2s)
tran1s
is equal to tran2s
.
map f xs
xs
is compatible with a value cmp
of type 'a Sort.total_ordering
, then map
returns the set of all regular expression transitions f x
such that x
is a member of xs
.
mapFromList f xs
f x
such that x
is a member of xs
.
union(tran1s, tran2s)
tran1s
and tran2s
.
genUnion transs
transs
.
inter(tran1s, tran2s)
tran1s
and tran2s
.
genInter transs
transs
. Issues an error message if transs
is empty.
minus(tran1s, tran2s)
tran1s
and tran2s
.
inputFromLabToks lts
lts
, consuming as much of lts
as possible, and returning the pair of the set of regular expression transitions and the rest of lts
. Issues an error message if it fails. Will only return the empty set if lts
doesn't begin with a symbol. If, after reading a transition, the next element of the labeled token list is ","
(Lex
.Comma
), then inputFromLabToks
insists on reading another transition, even if this results in failure.
fromString s
s
.
input fil
fil
.
toPP trans
trans
.
toString trans
trans
to a string.
output(fil, trans)
trans
to file fil
.
Forlan Version 4.15
Copyright © 2022 Alley Stoughton