public class Parser extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
REDUCE |
static char |
SHIFT |
static char |
SKIP |
static char |
SPECIAL
operand is one of the SPECIAL_xx values
|
static char |
SPECIAL_ACCEPT |
static char |
SPECIAL_CONFLICT
higher operand bits used to index resolver.
|
static char |
SPECIAL_ERROR
lowest two operand bits
|
| Constructor and Description |
|---|
Parser(ParserTable table,
ConflictResolver[] resolvers,
ScannerFactory scannerFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLeft(int production)
returns the subject symbol of the production
|
int |
getState() |
ParserTable |
getTable() |
Parser |
newInstance() |
Object |
pop() |
void |
push(int state,
Object node) |
Object |
run(Position position,
Reader src,
TreeBuilder treeBuilder,
PrintWriter verbose) |
void |
setErrorHandler(ErrorHandler errorHandler) |
public static final char SPECIAL
public static final char SHIFT
public static final char REDUCE
public static final char SKIP
public static final char SPECIAL_ERROR
public static final char SPECIAL_ACCEPT
public static final char SPECIAL_CONFLICT
public Parser(ParserTable table, ConflictResolver[] resolvers, ScannerFactory scannerFactory)
public ParserTable getTable()
public void setErrorHandler(ErrorHandler errorHandler)
public Parser newInstance()
public Object run(Position position, Reader src, TreeBuilder treeBuilder, PrintWriter verbose) throws IOException
IOExceptionpublic int getLeft(int production)
public int getState()
public Object pop()
public void push(int state,
Object node)
Copyright © 1998–2017 1&1. All rights reserved.