Index

Variables

Attribute

Attribute: Attribute

CommonTree

CommonTree: CommonTree

Dictionary

Dictionary: Dictionary

Exception

Exception: Exception

Let IAstRuleReturnScope

IAstRuleReturnScope: IAstRuleReturnScope<any>

AST rules have trees

Let ICharStream

ICharStream: Interface<ICharStream> = new Stimulsoft.System.Interface<ICharStream>("ICharStream")

A source of characters for an ANTLR lexer

Let IIntStream

IIntStream: Interface<IIntStream> = new Stimulsoft.System.Interface<IIntStream>("IIntStream")

A simple stream of integers used when all I care about is the char or token type sequence (such as interpretation).

Let IRuleReturnScope

IRuleReturnScope: IRuleReturnScope<any>

Rules can have start/stop info. The element type of the input stream.

Let ITemplateRuleReturnScope

ITemplateRuleReturnScope: ITemplateRuleReturnScope<any>

Let IToken

IToken: Interface<IToken> = new Stimulsoft.System.Interface<IToken>("IToken")

Let ITokenSource

ITokenSource: Interface<ITokenSource> = new Stimulsoft.System.Interface<ITokenSource>("ITokenSource")

A source of tokens must provide a sequence of tokens via nextToken() and also must reveal it's source of characters; CommonToken's text is computed from a CharStream; it only store indices into the char stream.

Errors from the lexer are never passed to the parser. Either you want to keep going or you do not upon token recognition error. If you do not want to continue lexing then you do not want to continue parsing. Just throw an exception not under RecognitionException and Java will naturally toss you all the way out of the recognizers. If you want to continue lexing then you should not throw an exception to the parser--it has already requested a token. Keep lexing until you get a valid one. Just report errors and keep going, looking for a valid token.

Let ITokenStream

ITokenStream: Interface<ITokenStream> = new Stimulsoft.System.Interface<ITokenStream>("ITokenStream")

A stream of tokens accessing tokens from a TokenSource

Let ITokenStreamInformation

ITokenStreamInformation: Interface<ITokenStreamInformation> = new Stimulsoft.System.Interface<ITokenStreamInformation>("ITokenStreamInformation")

ITreeNodeStream

ITreeNodeStream: Interface<ITreeNodeStream>

List

List: List

ListStack

ListStack: ListStack

LookaheadStream

LookaheadStream: LookaheadStream

StiArray

StiArray: StiArray

Type

Type: Type

Generated using TypeDoc