Class: KipperLexer
compiler.KipperLexer
Hierarchy
default↳
KipperLexer
Table of contents
Constructors
Properties
- AndAnd
- As
- Assign
- BitwiseAnd
- BitwiseNot
- BitwiseOr
- BitwiseSignedRightShift
- BitwiseXor
- BitwiseZeroFillLeftShift
- BitwiseZeroFillRightShift
- BlockComment
- Break
- COMMENT
- CallFunc
- Case
- Class
- Colon
- Comma
- Const
- Constructor
- Continue
- DOUBLE_QUOTE_FSTRING
- DefFunc
- Default
- Div
- DivAssign
- Do
- Dot
- DoubleQuoteStringLiteral
- Else
- Enum
- Equal
- FStringDoubleQuoteAtom
- FStringDoubleQuoteEnd
- FStringDoubleQuoteStart
- FStringExpEnd
- FStringExpStart
- FStringSingleQuoteAtom
- FStringSingleQuoteEnd
- FStringSingleQuoteStart
- False
- FloatingConstant
- For
- Greater
- GreaterEqual
- Identifier
- If
- InstanceOf
- IntegerConstant
- Interface
- LeftBrace
- LeftBracket
- LeftParen
- Less
- LessEqual
- LineComment
- Matches
- Minus
- MinusAssign
- MinusMinus
- Mod
- ModAssign
- New
- Newline
- Not
- NotEqual
- Null
- OrOr
- PRAGMA
- Plus
- PlusAssign
- PlusPlus
- PowerTo
- Pragma
- QuestionMark
- RetIndicator
- Return
- RightBrace
- RightBracket
- RightParen
- SINGLE_QUOTE_FSTRING
- SemiColon
- SingleQuoteStringLiteral
- Spread
- Star
- StarAssign
- Switch
- True
- Typeof
- Undefined
- VOCABULARY
- Var
- Void
- While
- Whitespace
- _LITERAL_NAMES
- _SYMBOLIC_NAMES
- __ATN
- _serializedATN
- _serializedATNSegment0
- _serializedATNSegment1
- _serializedATNSegments
- channelNames
- modeNames
- ruleNames
Accessors
Methods
- FStringDoubleQuoteEnd_action
- FStringDoubleQuoteExpStart_sempred
- FStringDoubleQuoteStart_action
- FStringExpEnd_sempred
- FStringSingleQuoteEnd_action
- FStringSingleQuoteExpStart_sempred
- FStringSingleQuoteStart_action
- action
- decrementFStringDepth
- incrementFStringDepth
- insideFString
- sempred
Constructors
constructor
• new KipperLexer(input)
Parameters
| Name | Type |
|---|---|
input |
CharStream |
Overrides
KipperLexerBase.constructor
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:431
Properties
AndAnd
▪ Static Readonly AndAnd: 55
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:73
As
▪ Static Readonly As: 8
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:26
Assign
▪ Static Readonly Assign: 58
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:76
BitwiseAnd
▪ Static Readonly BitwiseAnd: 70
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:88
BitwiseNot
▪ Static Readonly BitwiseNot: 73
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:91
BitwiseOr
▪ Static Readonly BitwiseOr: 71
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:89
BitwiseSignedRightShift
▪ Static Readonly BitwiseSignedRightShift: 75
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:93
BitwiseXor
▪ Static Readonly BitwiseXor: 72
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:90
BitwiseZeroFillLeftShift
▪ Static Readonly BitwiseZeroFillLeftShift: 74
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:92
BitwiseZeroFillRightShift
▪ Static Readonly BitwiseZeroFillRightShift: 76
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:94
BlockComment
▪ Static Readonly BlockComment: 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:20
Break
▪ Static Readonly Break: 13
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:31
COMMENT
▪ Static Readonly COMMENT: 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:109
CallFunc
▪ Static Readonly CallFunc: 23
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:41
Case
▪ Static Readonly Case: 11
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:29
Class
▪ Static Readonly Class: 25
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:43
Colon
▪ Static Readonly Colon: 39
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:57
Comma
▪ Static Readonly Comma: 36
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:54
Const
▪ Static Readonly Const: 6
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:24
Constructor
▪ Static Readonly Constructor: 27
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:45
Continue
▪ Static Readonly Continue: 14
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:32
DOUBLE_QUOTE_FSTRING
▪ Static Readonly DOUBLE_QUOTE_FSTRING: 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:112
DefFunc
▪ Static Readonly DefFunc: 21
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:39
Default
▪ Static Readonly Default: 12
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:30
Div
▪ Static Readonly Div: 52
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:70
DivAssign
▪ Static Readonly DivAssign: 62
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:80
Do
▪ Static Readonly Do: 15
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:33
Dot
▪ Static Readonly Dot: 77
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:95
DoubleQuoteStringLiteral
▪ Static Readonly DoubleQuoteStringLiteral: 81
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:99
Else
▪ Static Readonly Else: 18
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:36
Enum
▪ Static Readonly Enum: 20
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:38
Equal
▪ Static Readonly Equal: 64
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:82
FStringDoubleQuoteAtom
▪ Static Readonly FStringDoubleQuoteAtom: 90
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:108
FStringDoubleQuoteEnd
▪ Static Readonly FStringDoubleQuoteEnd: 89
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:107
FStringDoubleQuoteStart
▪ Static Readonly FStringDoubleQuoteStart: 86
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:104
FStringExpEnd
▪ Static Readonly FStringExpEnd: 44
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:62
FStringExpStart
▪ Static Readonly FStringExpStart: 1
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:19
FStringSingleQuoteAtom
▪ Static Readonly FStringSingleQuoteAtom: 88
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:106
FStringSingleQuoteEnd
▪ Static Readonly FStringSingleQuoteEnd: 87
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:105
FStringSingleQuoteStart
▪ Static Readonly FStringSingleQuoteStart: 85
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:103
False
▪ Static Readonly False: 30
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:48
FloatingConstant
▪ Static Readonly FloatingConstant: 82
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:100
For
▪ Static Readonly For: 19
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:37
Greater
▪ Static Readonly Greater: 68
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:86
GreaterEqual
▪ Static Readonly GreaterEqual: 69
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:87
Identifier
▪ Static Readonly Identifier: 78
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:96
If
▪ Static Readonly If: 17
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:35
InstanceOf
▪ Static Readonly InstanceOf: 5
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:23
IntegerConstant
▪ Static Readonly IntegerConstant: 79
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:97
Interface
▪ Static Readonly Interface: 26
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:44
LeftBrace
▪ Static Readonly LeftBrace: 45
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:63
LeftBracket
▪ Static Readonly LeftBracket: 42
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:60
LeftParen
▪ Static Readonly LeftParen: 40
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:58
Less
▪ Static Readonly Less: 66
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:84
LessEqual
▪ Static Readonly LessEqual: 67
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:85
LineComment
▪ Static Readonly LineComment: 3
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:21
Matches
▪ Static Readonly Matches: 31
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:49
Minus
▪ Static Readonly Minus: 49
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:67
MinusAssign
▪ Static Readonly MinusAssign: 60
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:78
MinusMinus
▪ Static Readonly MinusMinus: 50
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:68
Mod
▪ Static Readonly Mod: 53
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:71
ModAssign
▪ Static Readonly ModAssign: 63
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:81
New
▪ Static Readonly New: 28
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:46
Newline
▪ Static Readonly Newline: 84
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:102
Not
▪ Static Readonly Not: 57
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:75
NotEqual
▪ Static Readonly NotEqual: 65
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:83
Null
▪ Static Readonly Null: 34
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:52
OrOr
▪ Static Readonly OrOr: 56
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:74
PRAGMA
▪ Static Readonly PRAGMA: 3
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:110
Plus
▪ Static Readonly Plus: 47
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:65
PlusAssign
▪ Static Readonly PlusAssign: 59
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:77
PlusPlus
▪ Static Readonly PlusPlus: 48
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:66
PowerTo
▪ Static Readonly PowerTo: 54
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:72
Pragma
▪ Static Readonly Pragma: 4
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:22
QuestionMark
▪ Static Readonly QuestionMark: 38
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:56
RetIndicator
▪ Static Readonly RetIndicator: 24
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:42
Return
▪ Static Readonly Return: 22
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:40
RightBrace
▪ Static Readonly RightBrace: 46
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:64
RightBracket
▪ Static Readonly RightBracket: 43
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:61
RightParen
▪ Static Readonly RightParen: 41
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:59
SINGLE_QUOTE_FSTRING
▪ Static Readonly SINGLE_QUOTE_FSTRING: 1
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:111
SemiColon
▪ Static Readonly SemiColon: 37
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:55
SingleQuoteStringLiteral
▪ Static Readonly SingleQuoteStringLiteral: 80
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:98
Spread
▪ Static Readonly Spread: 9
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:27
Star
▪ Static Readonly Star: 51
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:69
StarAssign
▪ Static Readonly StarAssign: 61
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:79
Switch
▪ Static Readonly Switch: 10
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:28
True
▪ Static Readonly True: 29
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:47
Typeof
▪ Static Readonly Typeof: 32
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:50
Undefined
▪ Static Readonly Undefined: 35
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:53
VOCABULARY
▪ Static Readonly VOCABULARY: Vocabulary
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:418
Var
▪ Static Readonly Var: 7
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:25
Void
▪ Static Readonly Void: 33
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:51
While
▪ Static Readonly While: 16
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:34
Whitespace
▪ Static Readonly Whitespace: 83
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:101
_LITERAL_NAMES
▪ Static Private Readonly _LITERAL_NAMES: (undefined | string)[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:245
_SYMBOLIC_NAMES
▪ Static Private Readonly _SYMBOLIC_NAMES: (undefined | string)[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:325
__ATN
▪ Static __ATN: ATN
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:927
_serializedATN
▪ Static Readonly _serializedATN: string
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:923
_serializedATNSegment0
▪ Static Private Readonly _serializedATNSegment0: string
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:546
_serializedATNSegment1
▪ Static Private Readonly _serializedATNSegment1: string
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:797
_serializedATNSegments
▪ Static Private Readonly _serializedATNSegments: number = 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:545
channelNames
▪ Static Readonly channelNames: string[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:115
modeNames
▪ Static Readonly modeNames: string[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:118
ruleNames
▪ Static Readonly ruleNames: string[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:120
Accessors
channelNames
• get channelNames(): string[]
Returns
string[]
Overrides
KipperLexerBase.channelNames
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:452
grammarFileName
• get grammarFileName(): string
Returns
string
Overrides
KipperLexerBase.grammarFileName
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:437
modeNames
• get modeNames(): string[]
Returns
string[]
Overrides
KipperLexerBase.modeNames
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:457
ruleNames
• get ruleNames(): string[]
Returns
string[]
Overrides
KipperLexerBase.ruleNames
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:442
serializedATN
• get serializedATN(): string
Returns
string
Overrides
KipperLexerBase.serializedATN
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:447
vocabulary
• get vocabulary(): Vocabulary
Returns
Vocabulary
Overrides
KipperLexerBase.vocabulary
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:426
_ATN
• Static get _ATN(): ATN
Returns
ATN
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:928
Methods
FStringDoubleQuoteEnd_action
▸ Private FStringDoubleQuoteEnd_action(_localctx, actionIndex): void
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
actionIndex |
number |
Returns
void
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:502
FStringDoubleQuoteExpStart_sempred
▸ Private FStringDoubleQuoteExpStart_sempred(_localctx, predIndex): boolean
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
predIndex |
number |
Returns
boolean
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:537
FStringDoubleQuoteStart_action
▸ Private FStringDoubleQuoteStart_action(_localctx, actionIndex): void
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
actionIndex |
number |
Returns
void
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:488
FStringExpEnd_sempred
▸ Private FStringExpEnd_sempred(_localctx, predIndex): boolean
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
predIndex |
number |
Returns
boolean
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:523
FStringSingleQuoteEnd_action
▸ Private FStringSingleQuoteEnd_action(_localctx, actionIndex): void
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
actionIndex |
number |
Returns
void
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:495
FStringSingleQuoteExpStart_sempred
▸ Private FStringSingleQuoteExpStart_sempred(_localctx, predIndex): boolean
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
predIndex |
number |
Returns
boolean
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:530
FStringSingleQuoteStart_action
▸ Private FStringSingleQuoteStart_action(_localctx, actionIndex): void
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
actionIndex |
number |
Returns
void
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:481
action
▸ action(_localctx, ruleIndex, actionIndex): void
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
ruleIndex |
number |
actionIndex |
number |
Returns
void
Overrides
KipperLexerBase.action
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:462
decrementFStringDepth
▸ Protected decrementFStringDepth(): void
Returns
void
Inherited from
KipperLexerBase.decrementFStringDepth
Defined in
kipper/core/src/compiler/lexer-parser/antlr/base/KipperLexerBase.ts:26
incrementFStringDepth
▸ Protected incrementFStringDepth(): void
Returns
void
Inherited from
KipperLexerBase.incrementFStringDepth
Defined in
kipper/core/src/compiler/lexer-parser/antlr/base/KipperLexerBase.ts:22
insideFString
▸ Protected insideFString(): boolean
Returns
boolean
Inherited from
KipperLexerBase.insideFString
Defined in
kipper/core/src/compiler/lexer-parser/antlr/base/KipperLexerBase.ts:18
sempred
▸ sempred(_localctx, ruleIndex, predIndex): boolean
Parameters
| Name | Type |
|---|---|
_localctx |
RuleContext |
ruleIndex |
number |
predIndex |
number |
Returns
boolean
Overrides
KipperLexerBase.sempred
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:510