|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlogic.LogicParser
public class LogicParser
Logic Parser
Logic Parser is a syntax analyser for the logical expressions. Typically, Logic Parser is provided with a string containing the expression to evaluate. Exceptions are thrown if the provided string does not represent a legal formla.Copyright(c) 2005 Université Laval, LSFM research group.
Constructor Summary | |
---|---|
LogicParser()
Constructor with no parameters. |
Method Summary | |
---|---|
Formula |
parse(java.lang.String s)
Logical parser. |
void |
setAP(java.util.TreeSet ap)
Sets the current atomic proposition set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogicParser()
Method Detail |
---|
public void setAP(java.util.TreeSet ap)
ap
- a sorted set representing the atomic propositionspublic Formula parse(java.lang.String s) throws LogicParserException
s
- a string representing the formula to convert
LogicParserException
- should there be an invalid construction
or expression in the formula
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |