AltErgoLib.Literal
This module contains a definition of a "combined" literal type that can contain both syntaxic literals (expressions) and semantic literals (that contain semantic values, see also the Xliteral
module).
type 'a view =
| LTerm of Expr.t
| LSem of 'a
View over literals, parameterized by the type of semantic literals. Used for both pattern-matching and creation of literals (through the make
and view
functions).
val pp_view : 'a Fmt.t -> 'a view Fmt.t
Pretty-printer for views.
val hash_view : ('a -> int) -> 'a view -> int
Hash function for views.
module type S = sig ... end