|
||||||||
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 java.io.PrintStream |
out
message stream. |
Constructor Summary | |
---|---|
yyDebugAdapter()
|
|
yyDebugAdapter(java.io.PrintStream out)
|
Method Summary | |
---|---|
void |
accept(java.lang.Object value)
parse is successful. |
void |
discard(int state,
int token,
java.lang.String name,
java.lang.Object value)
discarding token during error recovery. |
void |
error(java.lang.String message)
syntax error. |
void |
lex(int state,
int token,
java.lang.String name,
java.lang.Object value)
just called the scanner. |
void |
pop(int state)
discarding a state during error recovery. |
void |
push(int state,
java.lang.Object value)
just pushed the state/value stack. |
void |
reduce(int from,
int to,
int rule,
java.lang.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 java.io.PrintStream out
Constructor Detail |
---|
public yyDebugAdapter(java.io.PrintStream out)
public yyDebugAdapter()
Method Detail |
---|
public void push(int state, java.lang.Object value)
yyDebug
push
in interface yyDebug
state
- current state.value
- current value.public void lex(int state, int token, java.lang.String name, java.lang.Object value)
yyDebug
lex
in interface yyDebug
state
- 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 yyDebug
from
- current state.to
- next state.errorFlag
- value in next state.public void pop(int state)
yyDebug
pop
in interface yyDebug
state
- discarded.public void discard(int state, int token, java.lang.String name, java.lang.Object value)
yyDebug
discard
in interface yyDebug
state
- current state.token
- discarded.name
- of token in grammar.value
- will be obtained from scanner.public void reduce(int from, int to, int rule, java.lang.String text, int len)
yyDebug
reduce
in interface yyDebug
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.public void shift(int from, int to)
yyDebug
shift
in interface yyDebug
from
- current state.to
- next state.public void accept(java.lang.Object value)
yyDebug
accept
in interface yyDebug
value
- to be returned by yyparse().public void error(java.lang.String message)
yyDebug
error
in interface yyDebug
public void reject()
yyDebug
reject
in interface yyDebug
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |