Package jay.yydebug
Class yyDebugAdapter
- java.lang.Object
-
- jay.yydebug.yyDebugAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
out
message stream.
-
Constructor Summary
Constructors Constructor Description yyDebugAdapter()
yyDebugAdapter(PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
out
protected final PrintStream out
message stream.
-
-
Constructor Detail
-
yyDebugAdapter
public yyDebugAdapter(PrintStream out)
-
yyDebugAdapter
public yyDebugAdapter()
-
-
Method Detail
-
push
public void push(int state, Object value)
Description copied from interface:yyDebug
just pushed the state/value stack.
-
lex
public void lex(int state, int token, String name, Object value)
Description copied from interface:yyDebug
just called the scanner.
-
shift
public void shift(int from, int to, int errorFlag)
Description copied from interface:yyDebug
moving to a new state because of input or error.
-
pop
public void pop(int state)
Description copied from interface:yyDebug
discarding a state during error recovery.
-
discard
public void discard(int state, int token, String name, Object value)
Description copied from interface:yyDebug
discarding token during error recovery.
-
reduce
public void reduce(int from, int to, int rule, String text, int len)
Description copied from interface:yyDebug
rule completed, calling action.
-
shift
public void shift(int from, int to)
Description copied from interface:yyDebug
moving to a new state following an action.
-
accept
public void accept(Object value)
Description copied from interface:yyDebug
parse is successful.
-
-