public class ParserTable extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_SET |
| Constructor and Description |
|---|
ParserTable(char startState,
int symbolCount,
int eofSymbol,
char[] values,
int[] lengths,
int[] lefts,
char[] modes)
Constructor for compiled object.
|
ParserTable(char startState,
int symbolCount,
int eofSymbol,
int stateCount,
String[] packedValues,
int[] lengths,
int[] lefts,
char[] modes) |
ParserTable(int startState,
int stateCount,
int symbolCount,
int eofSymbol,
Grammar grm,
char[] modes) |
| Modifier and Type | Method and Description |
|---|---|
static String |
actionToString(int value,
Grammar grammar) |
void |
addAccept(int state,
int eof) |
void |
addReduce(int stateId,
State state,
int terminal,
int prod,
ConflictHandler handler) |
void |
addShift(int state,
int sym,
int nextState)
Cannot have conflicts.
|
void |
addWhitespace(net.oneandone.sushi.util.IntBitSet whites) |
static char |
createValue(int action,
int operand) |
static int |
getAction(int value) |
int |
getEofSymbol() |
int |
getLeft(int prod) |
int[] |
getLefts() |
int |
getLength(int prod) |
int[] |
getLengths() |
char |
getMode(int state) |
static int |
getOperand(int value) |
int |
getProductionCount() |
net.oneandone.sushi.util.IntBitSet |
getShifts(int state) |
int |
getStartState() |
int |
getStateCount() |
int |
getSymbolCount() |
int |
getValueCount() |
int |
lookup(int state,
int symbol) |
int |
lookupShift(int state,
int production) |
String[] |
packValue(StringBuilder difs,
StringBuilder vals) |
String[] |
packValues() |
void |
print(PrintWriter dest) |
void |
setModes(char[] modes) |
String |
toString(Grammar grammar) |
public ParserTable(char startState,
int symbolCount,
int eofSymbol,
char[] values,
int[] lengths,
int[] lefts,
char[] modes)
public ParserTable(char startState,
int symbolCount,
int eofSymbol,
int stateCount,
String[] packedValues,
int[] lengths,
int[] lefts,
char[] modes)
public ParserTable(int startState,
int stateCount,
int symbolCount,
int eofSymbol,
Grammar grm,
char[] modes)
throws GenericException
GenericExceptionpublic int getEofSymbol()
public int getValueCount()
public void setModes(char[] modes)
public void addShift(int state,
int sym,
int nextState)
public void addReduce(int stateId,
State state,
int terminal,
int prod,
ConflictHandler handler)
public void addAccept(int state,
int eof)
public void addWhitespace(net.oneandone.sushi.util.IntBitSet whites)
public static char createValue(int action,
int operand)
public String[] packValues()
public String[] packValue(StringBuilder difs, StringBuilder vals)
public int getSymbolCount()
public int getStateCount()
public int getStartState()
public int getProductionCount()
public int getLeft(int prod)
public int getLength(int prod)
public static int getAction(int value)
public static int getOperand(int value)
public int lookup(int state,
int symbol)
public int lookupShift(int state,
int production)
public char getMode(int state)
public void print(PrintWriter dest)
public net.oneandone.sushi.util.IntBitSet getShifts(int state)
public int[] getLengths()
public int[] getLefts()
Copyright © 1998–2017 1&1. All rights reserved.