module Alias: sig end
exception Alias_error of string * Location.location
alias
module to signal errors
in the input file concerning aliases.val has_alias : Symbols.eva_symbol_list -> Abstract.eva_lterm -> bool
has_alias sl term
true
if the given located term term
contains
a symbol registered as an alias in the given symbol list sl
.
Returns false
otherwise.
NB: It is assumes that only the leaves of the form EVA_TERM_ID
and EVA_TERM_ALIAS
(see Abstract.eva_term
) can contain alias symbols.
val unalias_lterm : Symbols.eva_symbol_list -> Abstract.eva_lterm -> Abstract.eva_lterm
unalias_lterm sl term
term
,
according to the given symbol list sl
.val unalias_ldcl : Symbols.eva_symbol_list -> Abstract.eva_ldcl -> Abstract.eva_ldcl
unalias_ldcl sl d
d
after unaliasing the terms it contains,
only if the declaration is not an alias declaration.val unalias_dcl : Symbols.eva_symbol_list -> Abstract.eva_dcl -> Abstract.eva_dcl
unalias_dcl sl d
d
after unaliasing the terms it contains,
only if the declaration is not an alias declaration.val unalias_spec : Symbols.eva_symbol_list -> Abstract.eva_spec -> Abstract.eva_spec
unalias_spec sl sp
sp
after unaliasing all the terms it contains,
except in the alias declarations