Package mepk.builtin
Class MEPKParsers
java.lang.Object
mepk.builtin.MEPKParsers
Parsers for expressions, etc.
Example: MEPKParsers.Expr("(> (+ x (1)) (0))").
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionParse the given expression string (in "Ghilbert format") to anExpressioninstance.static StatementParse the given statement string to aStatementinstance.
-
Method Details
-
Expr
Parse the given expression string (in "Ghilbert format") to anExpressioninstance. An expression is of the form(> (+ x (1)) (0))- Parameters:
expressionAsString- the string to parse- Returns:
- the parsed expression
- Throws:
MEPKParseException- if parsing failed
-
Stat
Parse the given statement string to aStatementinstance. A statement is of the formDISTINCT (x y) AND (Nat x) AND (Real y) AND (> x y) ==> (Real x).- Parameters:
statementAsString- the string to parse- Returns:
- the parsed statement
- Throws:
MEPKParseException- if parsing failed
-