Package jay.yydebug
Interface yyDebug
- All Known Implementing Classes:
yyAnim
,yyAnimPanel
,yyDebugAdapter
public interface yyDebug
debugging interface for parsers generated by
.
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.
invalid reference
jay
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parse is successful.void
discarding token during error recovery.void
syntax error.void
just called the scanner.void
pop
(int state) discarding a state during error recovery.void
just pushed the state/value stack.void
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 Details
-
push
just pushed the state/value stack.- Parameters:
state
- current state.value
- current value.
-
lex
just called the scanner.- Parameters:
state
- current state.token
- just obtained from scanner.name
- of token in grammar.value
- will be obtained from scanner.
-
shift
void shift(int from, int to, int errorFlag) moving to a new state because of input or error.- Parameters:
from
- current state.to
- next state.errorFlag
- value in next state.
-
pop
void pop(int state) discarding a state during error recovery.- Parameters:
state
- discarded.
-
reject
void reject()error recovery failed, about to throw yyException. -
discard
discarding token during error recovery.- Parameters:
state
- current state.token
- discarded.name
- of token in grammar.value
- will be obtained from scanner.
-
reduce
rule completed, calling action.- Parameters:
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.
-
shift
void shift(int from, int to) moving to a new state following an action.- Parameters:
from
- current state.to
- next state.
-
accept
parse is successful.- Parameters:
value
- to be returned by yyparse().
-
error
syntax error.
-