Libabsolute.Parser
This module defines several parsing utilities
Exception raised by parse functions when the input is syntactically invalid.
Exception raised by check functions when the input is semantically invalid
val semantic_check : Csp.t -> unit
Check that no unbound variables appear, that domains are valid and function calls respect the arity.
val expr : string -> Expr.t
Parses a string representation of a numeric expression.
val constr : string -> Constraint.t
Parses a string representation of a constraint.
val file : ?check:bool -> string -> Csp.t
parses a .abs
file and builds the corresponding problem. Raises Syntax_error
when the input is syntactically invalid and Semantic_error
when the input makes no sense (e.g unbound variable). When check is set to false, no semantic check is performed