public class Rule
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Rule.RuleOp |
Modifier and Type | Field and Description |
---|---|
Literal |
clause |
CNF |
cnf |
LHS |
lhs |
Rule.RuleOp |
operator |
RHS |
rhs |
int |
startLine |
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
deepCopy() |
static void |
main(java.lang.String[] args)
A test method
|
static Rule |
parse(Lexer lex)
We won't know whether it's a fact or a rule until we read the
first token, so the first token for LHS will always be already
in st.sval
|
static Rule |
parseString(java.lang.String s) |
static void |
testParse()
A test method
|
java.lang.String |
toString() |
public CNF cnf
public LHS lhs
public Rule.RuleOp operator
public RHS rhs
public Literal clause
public int startLine
public java.lang.String toString()
toString
in class java.lang.Object
public Rule deepCopy()
public static Rule parse(Lexer lex)
public static Rule parseString(java.lang.String s)
public static void testParse()
public static void main(java.lang.String[] args)