Package beaver

Class Action


  • public abstract class Action
    extends Object
    An "interface" to Java code executed when a production is reduced.
    • Field Detail

      • NONE

        public static final Action NONE
      • RETURN

        public static final Action RETURN
    • Constructor Detail

      • Action

        public Action()
    • Method Detail

      • reduce

        public abstract Symbol reduce​(Symbol[] args,
                                      int offset)
        Am action code that is executed when the production is reduced.
        Parameters:
        args - an array part of which is filled with this action arguments
        offset - to the last element BEFORE the first argument of this action
        Returns:
        a symbol or a value of a LHS nonterminal