Package jay.yydebug

Interface yyDebug

  • All Known Implementing Classes:
    yyAnim, yyAnimPanel, yyDebugAdapter

    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

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • push

        void push​(int state,
                  Object value)
        just pushed the state/value stack.
        Parameters:
        state - current state.
        value - current value.
      • lex

        void lex​(int state,
                 int token,
                 String name,
                 Object value)
        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

        void discard​(int state,
                     int token,
                     String name,
                     Object value)
        discarding token during error recovery.
        Parameters:
        state - current state.
        token - discarded.
        name - of token in grammar.
        value - will be obtained from scanner.
      • reduce

        void reduce​(int from,
                    int to,
                    int rule,
                    String text,
                    int len)
        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

        void accept​(Object value)
        parse is successful.
        Parameters:
        value - to be returned by yyparse().
      • error

        void error​(String message)
        syntax error.