StiLexer Class
Namespace: Stimulsoft.Base
Performs the lexical analysis.
Properties
| Property | Type | Description |
|---|---|---|
| text | string | Gets or sets text for analys. |
Methods
| Method | Returns | Description |
|---|---|---|
| getPosition | StiPosition | Gets position of token in text. |
| savePosToken | void | Saves position of token in text. |
| scanIdent | StiToken | Scans the identifier. |
| scanNumber | StiToken | Scans the number. |
| scanString | StiToken | Scans the string. |
| waitAssign2 | boolean | Wait the assign. |
| waitComma2 | boolean | Wait the right bracket. |
| waitLbrace2 | boolean | Wait the left brace. |
| waitLparen2 | boolean | Wait the left paren. |
| waitRbrace2 | boolean | Wait the right brace. |
| waitRparen2 | boolean | Wait the right paren. |
| waitSemicolon2 | boolean | Wait the semicolon. |
Method Details
getPosition
getPosition(positionInText: number): StiPosition
Gets position of token in text.
Parameters
- positionInText (number) — Position in text.
Returns StiPosition — Position of token in text.
savePosToken
savePosToken(): void
Saves position of token in text.
scanIdent
scanIdent(): StiToken
Scans the identifier.
Returns StiToken — Token containing identifier.
scanNumber
scanNumber(): StiToken
Scans the number.
Returns StiToken — Token containing number.
scanString
scanString(): StiToken
Scans the string.
Returns StiToken — Token containing string.
waitAssign2
waitAssign2(): boolean
Wait the assign.
Returns boolean
waitComma2
waitComma2(): boolean
Wait the right bracket.
Returns boolean
waitLbrace2
waitLbrace2(): boolean
Wait the left brace.
Returns boolean
waitLparen2
waitLparen2(): boolean
Wait the left paren.
Returns boolean
waitRbrace2
waitRbrace2(): boolean
Wait the right brace.
Returns boolean
waitRparen2
waitRparen2(): boolean
Wait the right paren.
Returns boolean
waitSemicolon2
waitSemicolon2(): boolean
Wait the semicolon.
Returns boolean
Fields
| Field | Type | Description |
|---|---|---|
| baseText | string | Gets or sets text for analys. |
| isDecimal | any | |
| isDouble | any | |
| isDouble | any | |
| isFloat | any | |
| isFrac | any | |
| isLong | any | |
| isScript | any | |
| positionInText | number | Gets or sets current position in text. |