Package jay.yydebug
Class yyDebugAdapter
- java.lang.Object
-
- jay.yydebug.yyDebugAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.PrintStreamoutmessage stream.
-
Constructor Summary
Constructors Constructor Description yyDebugAdapter()yyDebugAdapter(java.io.PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.Object value)parse is successful.voiddiscard(int state, int token, java.lang.String name, java.lang.Object value)discarding token during error recovery.voiderror(java.lang.String message)syntax error.voidlex(int state, int token, java.lang.String name, java.lang.Object value)just called the scanner.voidpop(int state)discarding a state during error recovery.voidpush(int state, java.lang.Object value)just pushed the state/value stack.voidreduce(int from, int to, int rule, java.lang.String text, int len)rule completed, calling action.voidreject()error recovery failed, about to throw yyException.voidshift(int from, int to)moving to a new state following an action.voidshift(int from, int to, int errorFlag)moving to a new state because of input or error.
-
-
-
Method Detail
-
push
public void push(int state, java.lang.Object value)Description copied from interface:yyDebugjust pushed the state/value stack.
-
lex
public void lex(int state, int token, java.lang.String name, java.lang.Object value)Description copied from interface:yyDebugjust called the scanner.
-
shift
public void shift(int from, int to, int errorFlag)Description copied from interface:yyDebugmoving to a new state because of input or error.
-
pop
public void pop(int state)
Description copied from interface:yyDebugdiscarding a state during error recovery.
-
discard
public void discard(int state, int token, java.lang.String name, java.lang.Object value)Description copied from interface:yyDebugdiscarding token during error recovery.
-
reduce
public void reduce(int from, int to, int rule, java.lang.String text, int len)Description copied from interface:yyDebugrule completed, calling action.
-
shift
public void shift(int from, int to)Description copied from interface:yyDebugmoving to a new state following an action.
-
accept
public void accept(java.lang.Object value)
Description copied from interface:yyDebugparse is successful.
-
error
public void error(java.lang.String message)
Description copied from interface:yyDebugsyntax error.
-
-