|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjay.yydebug.yyDebugAdapter
public class yyDebugAdapter
writes one-line messages to standard output or a stream.
| Field Summary | |
|---|---|
protected PrintStream |
out
message stream. |
| Constructor Summary | |
|---|---|
yyDebugAdapter()
|
|
yyDebugAdapter(PrintStream out)
|
|
| Method Summary | |
|---|---|
void |
accept(Object value)
parse is successful. |
void |
discard(int state,
int token,
String name,
Object value)
discarding token during error recovery. |
void |
error(String message)
syntax error. |
void |
lex(int state,
int token,
String name,
Object value)
just called the scanner. |
void |
pop(int state)
discarding a state during error recovery. |
void |
push(int state,
Object value)
just pushed the state/value stack. |
void |
reduce(int from,
int to,
int rule,
String text,
int len)
rule completed, calling action. |
void |
reject()
error recovery failed, about to throw yyException. |
void |
shift(int from,
int to)
moving to a new state following an action. |
void |
shift(int from,
int to,
int errorFlag)
moving to a new state because of input or error. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PrintStream out
| Constructor Detail |
|---|
public yyDebugAdapter(PrintStream out)
public yyDebugAdapter()
| Method Detail |
|---|
public void push(int state,
Object value)
yyDebug
push in interface yyDebugstate - current state.value - current value.
public void lex(int state,
int token,
String name,
Object value)
yyDebug
lex in interface yyDebugstate - current state.token - just obtained from scanner.name - of token in grammar.value - will be obtained from scanner.
public void shift(int from,
int to,
int errorFlag)
yyDebug
shift in interface yyDebugfrom - current state.to - next state.errorFlag - value in next state.public void pop(int state)
yyDebug
pop in interface yyDebugstate - discarded.
public void discard(int state,
int token,
String name,
Object value)
yyDebug
discard in interface yyDebugstate - current state.token - discarded.name - of token in grammar.value - will be obtained from scanner.
public void reduce(int from,
int to,
int rule,
String text,
int len)
yyDebug
reduce in interface yyDebugfrom - current state.to - state to be uncovered.rule - number of completed right-hand side.text - text of rule.len - number of symbols in rule.
public void shift(int from,
int to)
yyDebug
shift in interface yyDebugfrom - current state.to - next state.public void accept(Object value)
yyDebug
accept in interface yyDebugvalue - to be returned by yyparse().public void error(String message)
yyDebug
error in interface yyDebugpublic void reject()
yyDebug
reject in interface yyDebug
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||