Calitha GOLD Parser Engine Documentation

LALRParser.OnReduce Event

This event will be called when tokens are reduced.

public event ReduceHandler OnReduce;

Event Data

The event handler receives an argument of type ReduceEventArgs containing data related to this event. The following ReduceEventArgs properties provide information specific to this event.

Property Description
Continue Determines if the parse process should continue after this event. True by default.
NewState The state after the reduction.
Rule The rule that was used to reduce tokens.
Token The nonterminal token that consists of nonterminal or terminal tokens that has been reduced by the rule.

See Also

LALRParser Class | com.calitha.goldparser Namespace