|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface yyDebug
debugging interface for parsers generated by jay.
For details consult the skeleton files.
The interface expects that the scanner can be queried more then
once for a value corresponding to a token.
| 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. |
| Method Detail |
|---|
void push(int state,
Object value)
state - current state.value - current value.
void lex(int state,
int token,
String name,
Object value)
state - current state.token - just obtained from scanner.name - of token in grammar.value - will be obtained from scanner.
void shift(int from,
int to,
int errorFlag)
from - current state.to - next state.errorFlag - value in next state.void pop(int state)
state - discarded.void reject()
void discard(int state,
int token,
String name,
Object value)
state - current state.token - discarded.name - of token in grammar.value - will be obtained from scanner.
void reduce(int from,
int to,
int rule,
String text,
int len)
from - current state.to - state to be uncovered.rule - number of completed right-hand side.text - text of rule.len - number of symbols in rule.
void shift(int from,
int to)
from - current state.to - next state.void accept(Object value)
value - to be returned by yyparse().void error(String message)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||