Lexer Class
Namespace: Stimulsoft.Data.Expressions.Antlr.Runtime
Inheritance
Inherits from: BaseRecognizer
Implements: ITokenSource
Constructors
| Constructor | Description |
|---|---|
| Lexer() | |
| Lexer(ICharStream input) | |
| Lexer(ICharStream input, RecognizerSharedState state) |
Lexer()
Lexer(input: ICharStream)
Parameters
- input (ICharStream)
Lexer(input: ICharStream, state: RecognizerSharedState)
Parameters
- input (ICharStream)
- state (RecognizerSharedState)
Methods
| Method | Returns | Description |
|---|---|---|
| Emit (+1 overloads) | void | |
| GetCharErrorDisplay | string | |
| GetEndOfFileToken | IToken | |
| GetErrorMessage | string | |
| Match (+1 overloads) | void | |
| MatchAny | void | |
| MatchRange | void | |
| NextToken | IToken | |
| ParseNextToken | void | |
| Recover | void | |
| ReportError | void | |
| Reset | void | |
| Skip | void | |
| TraceIn | void | |
| TraceOut | void | |
| mTokens | void |
Method Details
Emit
Emit(token: IToken): void
Parameters
- token (IToken)
Emit(): IToken
Returns IToken
GetCharErrorDisplay
GetCharErrorDisplay(c: int): string
Parameters
- c (int)
Returns string
GetEndOfFileToken
GetEndOfFileToken(): IToken
Returns IToken
GetErrorMessage
GetErrorMessage(e: RecognitionException, **: stringtokenNames): string
Parameters
- e (RecognitionException)
- ** (stringtokenNames)
Returns string
Match
Match(s: string): void
Parameters
- s (string)
Match(c: int): void
Parameters
- c (int)
MatchAny
MatchAny(): void
MatchRange
MatchRange(a: int, b: int): void
Parameters
- a (int)
- b (int)
NextToken
NextToken(): IToken
Returns IToken
ParseNextToken
ParseNextToken(): void
Recover
Recover(re: RecognitionException): void
Parameters
- re (RecognitionException)
ReportError
ReportError(e: RecognitionException): void
Parameters
Reset
Reset(): void
Skip
Skip(): void
TraceIn
TraceIn(ruleName: string, ruleIndex: int): void
Parameters
- ruleName (string)
- ruleIndex (int)
TraceOut
TraceOut(ruleName: string, ruleIndex: int): void
Parameters
- ruleName (string)
- ruleIndex (int)
mTokens
mTokens(): void
Fields
| Field | Type | Description |
|---|---|---|
| input | ICharStream |