public class PDA extends Object implements PDABuilder
| Modifier and Type | Method and Description |
|---|---|
int |
add(State state) |
int |
addIfNew(State state) |
static PDA |
create(Grammar grammar,
Map<Integer,PrefixSet> firsts,
int k,
int threadCount) |
ParserTable |
createTable(int lastSymbol,
ConflictHandler handler) |
int |
getEofSymbol()
Pseudo-symbol, indicates end-of-file (or an empty word if lookahead is seen as a set of words of length <= 1)
|
Grammar |
getGrammar() |
void |
print(PrintWriter dest) |
int |
size() |
void |
statistics(PrintWriter output) |
public static PDA create(Grammar grammar, Map<Integer,PrefixSet> firsts, int k, int threadCount)
public int add(State state)
public Grammar getGrammar()
getGrammar in interface PDABuilderpublic int addIfNew(State state)
addIfNew in interface PDABuilderpublic int size()
size in interface PDABuilderpublic int getEofSymbol()
public ParserTable createTable(int lastSymbol, ConflictHandler handler) throws GenericException
GenericExceptionpublic void print(PrintWriter dest)
public void statistics(PrintWriter output)
Copyright © 1998–2017 1&1. All rights reserved.