An NDoc Documented Class Library

Parser Properties

The properties of the Parser class are listed below. For a complete list of Parser class members, see the Parser Members topic.

Public Instance Properties

CharPosition Gets current char position.
CommentText Gets current comment text.
CurrentLRState Gets current LR state.
Grammar Gets the parser's grammar.
LineNumber Gets current line number. It is 1-based.
LinePosition Gets current char position in the current source line. It is 1-based.
LineText Gets current source line text. It can be truncated if line is longer than 2048 characters.
ReductionCount Gets number of items in the current reduction
ReductionRule Gets current reduction syntax rule.
SourceLineReadCallback Gets or sets callback function to track source line text.
TextReader Gets source of parsed data.
TokenCharPosition Gets or sets current token position relative to input stream beginning.
TokenLength Gets or sets current token text length.
TokenLineNumber Gets or sets current token line number. It is 1-based.
TokenLinePosition Gets or sets current token position in current source line. It is 1-based.
TokenString Returns string representation of the token.
TokenSymbol Gets or sets current token symbol.
TokenSyntaxNode Gets or sets token syntax object associated with the current token or reduction.
TokenText Gets or sets current token text.
TrimReductions Gets or sets flag to trim reductions.

See Also

Parser Class | GoldParser Namespace