Calitha GOLD Parser Engine Documentation

LALRParser Members

LALRParser overview

Public Instance Constructors

LALRParser Constructor Creates a new LALR parser.

Public Instance Properties

StoreTokens This property determines if reduced tokens should be stored in a reduced token after the reduce event has occured. There are three possible values: Always means that the tokens should always be kept, NoUserObject (default) means that the tokens should only be kept if there was no user object assigned in the reduced token, Never means that the tokens are no longer available after the reduce event.
TrimReductions Trim Reductions. When true there will be no reductions for single nonterminal rules, and no events for this will be generated.

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
Parse Parse the input with tokens and rules.
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

OnAccept This event will be called if the parser is finished and the input has been accepted.
OnCommentRead This event will be called when a comment section has been read.
OnGoto This event will be called when a goto occurs (after a reduction).
OnParseError This event will be called when the parser has a token it cannot parse.
OnReduce This event will be called when tokens are reduced.
OnShift This event will be called when a token is shifted onto the stack.
OnTokenError This event will be called when the tokenizer cannot recognize the input.
OnTokenRead This event will be called if a token has been read which will be parsed by the LALR parser.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

LALRParser Class | com.calitha.goldparser Namespace