Class Token

Extends: GoldParser.Symbol

While the Symbol represents a class of terminals and nonterminals, the Token represents an individual piece of information.

Public Properties
Data
Gets or sets the information stored in the token. 

Public Methods
ToString
Returns the text representation of the token's parent symbol. 

Property Detail

Data

public object Data { get; set; }
Gets or sets the information stored in the token.
Method Detail

ToString

public string ToString()
Returns the text representation of the token's parent symbol.
Remarks
In the case of nonterminals, the name is delimited by angle brackets, special terminals are delimited by parenthesis and terminals are delimited by single quotes (if special characters are present).