public class LHS
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LHS.LHSop |
Modifier and Type | Field and Description |
---|---|
Literal |
clause |
LHS |
lhs1 |
LHS |
lhs2 |
java.lang.reflect.Method |
method |
LHS.LHSop |
operator |
Constructor and Description |
---|
LHS() |
Modifier and Type | Method and Description |
---|---|
LHS |
deepCopy() |
static void |
main(java.lang.String[] args)
A test method
|
static LHS |
parse(Lexer lex,
int startLine) |
static void |
testParse()
A test method
|
static void |
testParseProc()
A test method
|
static void |
testParseProc2()
A test method
|
java.lang.String |
toString() |
public Literal clause
public LHS lhs1
public LHS lhs2
public LHS.LHSop operator
public java.lang.reflect.Method method
public java.lang.String toString()
toString
in class java.lang.Object
public LHS deepCopy()
public static LHS parse(Lexer lex, int startLine)
lex
- is a Lexer which has been initialized with the
textual version of the LHSstartLine
- is the line in the text file at which the
LHS appears. If it is in a large rule the start line
could be different than the actual line of text for the LHS.
If the LHS is just from a string rather than directly from
a text file then the startLine will be 0.public static void testParse()
public static void testParseProc()
public static void testParseProc2()
public static void main(java.lang.String[] args)