Package beaver
Class Action
- java.lang.Object
-
- beaver.Action
-
public abstract class Action extends Object
An "interface" to Java code executed when a production is reduced.
-
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Symbolreduce(Symbol[] args, int offset)Am action code that is executed when the production is reduced.
-
-
-
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 argumentsoffset- to the last element BEFORE the first argument of this action- Returns:
- a symbol or a value of a LHS nonterminal
-
-