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
- Colon
- Comma
- Const
- 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
- IntegerConstant
- LeftBrace
- LeftBracket
- LeftParen
- Less
- LessEqual
- LineComment
- Minus
- MinusAssign
- MinusMinus
- Mod
- ModAssign
- 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:407
Properties
AndAnd
▪ Static
Readonly
AndAnd: 49
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:67
As
▪ Static
Readonly
As: 7
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:25
Assign
▪ Static
Readonly
Assign: 52
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:70
BitwiseAnd
▪ Static
Readonly
BitwiseAnd: 64
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:82
BitwiseNot
▪ Static
Readonly
BitwiseNot: 67
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:85
BitwiseOr
▪ Static
Readonly
BitwiseOr: 65
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:83
BitwiseSignedRightShift
▪ Static
Readonly
BitwiseSignedRightShift: 69
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:87
BitwiseXor
▪ Static
Readonly
BitwiseXor: 66
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:84
BitwiseZeroFillLeftShift
▪ Static
Readonly
BitwiseZeroFillLeftShift: 68
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:86
BitwiseZeroFillRightShift
▪ Static
Readonly
BitwiseZeroFillRightShift: 70
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:88
BlockComment
▪ Static
Readonly
BlockComment: 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:20
Break
▪ Static
Readonly
Break: 12
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:30
COMMENT
▪ Static
Readonly
COMMENT: 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:103
CallFunc
▪ Static
Readonly
CallFunc: 22
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:40
Case
▪ Static
Readonly
Case: 10
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:28
Colon
▪ Static
Readonly
Colon: 33
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:51
Comma
▪ Static
Readonly
Comma: 30
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:48
Const
▪ Static
Readonly
Const: 5
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:23
Continue
▪ Static
Readonly
Continue: 13
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:31
DOUBLE_QUOTE_FSTRING
▪ Static
Readonly
DOUBLE_QUOTE_FSTRING: 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:106
DefFunc
▪ Static
Readonly
DefFunc: 20
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:38
Default
▪ Static
Readonly
Default: 11
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:29
Div
▪ Static
Readonly
Div: 46
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:64
DivAssign
▪ Static
Readonly
DivAssign: 56
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:74
Do
▪ Static
Readonly
Do: 14
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:32
Dot
▪ Static
Readonly
Dot: 71
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:89
DoubleQuoteStringLiteral
▪ Static
Readonly
DoubleQuoteStringLiteral: 75
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:93
Else
▪ Static
Readonly
Else: 17
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:35
Enum
▪ Static
Readonly
Enum: 19
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:37
Equal
▪ Static
Readonly
Equal: 58
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:76
FStringDoubleQuoteAtom
▪ Static
Readonly
FStringDoubleQuoteAtom: 84
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:102
FStringDoubleQuoteEnd
▪ Static
Readonly
FStringDoubleQuoteEnd: 83
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:101
FStringDoubleQuoteStart
▪ Static
Readonly
FStringDoubleQuoteStart: 80
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:98
FStringExpEnd
▪ Static
Readonly
FStringExpEnd: 38
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:56
FStringExpStart
▪ Static
Readonly
FStringExpStart: 1
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:19
FStringSingleQuoteAtom
▪ Static
Readonly
FStringSingleQuoteAtom: 82
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:100
FStringSingleQuoteEnd
▪ Static
Readonly
FStringSingleQuoteEnd: 81
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:99
FStringSingleQuoteStart
▪ Static
Readonly
FStringSingleQuoteStart: 79
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:97
False
▪ Static
Readonly
False: 25
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:43
FloatingConstant
▪ Static
Readonly
FloatingConstant: 76
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:94
For
▪ Static
Readonly
For: 18
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:36
Greater
▪ Static
Readonly
Greater: 62
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:80
GreaterEqual
▪ Static
Readonly
GreaterEqual: 63
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:81
Identifier
▪ Static
Readonly
Identifier: 72
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:90
If
▪ Static
Readonly
If: 16
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:34
IntegerConstant
▪ Static
Readonly
IntegerConstant: 73
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:91
LeftBrace
▪ Static
Readonly
LeftBrace: 39
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:57
LeftBracket
▪ Static
Readonly
LeftBracket: 36
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:54
LeftParen
▪ Static
Readonly
LeftParen: 34
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:52
Less
▪ Static
Readonly
Less: 60
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:78
LessEqual
▪ Static
Readonly
LessEqual: 61
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:79
LineComment
▪ Static
Readonly
LineComment: 3
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:21
Minus
▪ Static
Readonly
Minus: 43
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:61
MinusAssign
▪ Static
Readonly
MinusAssign: 54
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:72
MinusMinus
▪ Static
Readonly
MinusMinus: 44
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:62
Mod
▪ Static
Readonly
Mod: 47
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:65
ModAssign
▪ Static
Readonly
ModAssign: 57
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:75
Newline
▪ Static
Readonly
Newline: 78
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:96
Not
▪ Static
Readonly
Not: 51
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:69
NotEqual
▪ Static
Readonly
NotEqual: 59
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:77
Null
▪ Static
Readonly
Null: 28
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:46
OrOr
▪ Static
Readonly
OrOr: 50
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:68
PRAGMA
▪ Static
Readonly
PRAGMA: 3
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:104
Plus
▪ Static
Readonly
Plus: 41
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:59
PlusAssign
▪ Static
Readonly
PlusAssign: 53
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:71
PlusPlus
▪ Static
Readonly
PlusPlus: 42
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:60
PowerTo
▪ Static
Readonly
PowerTo: 48
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:66
Pragma
▪ Static
Readonly
Pragma: 4
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:22
QuestionMark
▪ Static
Readonly
QuestionMark: 32
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:50
RetIndicator
▪ Static
Readonly
RetIndicator: 23
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:41
Return
▪ Static
Readonly
Return: 21
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:39
RightBrace
▪ Static
Readonly
RightBrace: 40
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:58
RightBracket
▪ Static
Readonly
RightBracket: 37
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:55
RightParen
▪ Static
Readonly
RightParen: 35
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:53
SINGLE_QUOTE_FSTRING
▪ Static
Readonly
SINGLE_QUOTE_FSTRING: 1
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:105
SemiColon
▪ Static
Readonly
SemiColon: 31
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:49
SingleQuoteStringLiteral
▪ Static
Readonly
SingleQuoteStringLiteral: 74
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:92
Spread
▪ Static
Readonly
Spread: 8
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:26
Star
▪ Static
Readonly
Star: 45
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:63
StarAssign
▪ Static
Readonly
StarAssign: 55
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:73
Switch
▪ Static
Readonly
Switch: 9
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:27
True
▪ Static
Readonly
True: 24
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:42
Typeof
▪ Static
Readonly
Typeof: 26
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:44
Undefined
▪ Static
Readonly
Undefined: 29
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:47
VOCABULARY
▪ Static
Readonly
VOCABULARY: Vocabulary
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:394
Var
▪ Static
Readonly
Var: 6
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:24
Void
▪ Static
Readonly
Void: 27
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:45
While
▪ Static
Readonly
While: 15
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:33
Whitespace
▪ Static
Readonly
Whitespace: 77
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:95
_LITERAL_NAMES
▪ Static
Private
Readonly
_LITERAL_NAMES: (undefined
| string
)[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:233
_SYMBOLIC_NAMES
▪ Static
Private
Readonly
_SYMBOLIC_NAMES: (undefined
| string
)[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:307
__ATN
▪ Static
__ATN: ATN
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:874
_serializedATN
▪ Static
Readonly
_serializedATN: string
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:870
_serializedATNSegment0
▪ Static
Private
Readonly
_serializedATNSegment0: string
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:522
_serializedATNSegment1
▪ Static
Private
Readonly
_serializedATNSegment1: string
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:774
_serializedATNSegments
▪ Static
Private
Readonly
_serializedATNSegments: number
= 2
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:521
channelNames
▪ Static
Readonly
channelNames: string
[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:109
modeNames
▪ Static
Readonly
modeNames: string
[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:112
ruleNames
▪ Static
Readonly
ruleNames: string
[]
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:114
Accessors
channelNames
• get
channelNames(): string
[]
Returns
string
[]
Overrides
KipperLexerBase.channelNames
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:428
grammarFileName
• get
grammarFileName(): string
Returns
string
Overrides
KipperLexerBase.grammarFileName
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:413
modeNames
• get
modeNames(): string
[]
Returns
string
[]
Overrides
KipperLexerBase.modeNames
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:433
ruleNames
• get
ruleNames(): string
[]
Returns
string
[]
Overrides
KipperLexerBase.ruleNames
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:418
serializedATN
• get
serializedATN(): string
Returns
string
Overrides
KipperLexerBase.serializedATN
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:423
vocabulary
• get
vocabulary(): Vocabulary
Returns
Vocabulary
Overrides
KipperLexerBase.vocabulary
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:402
_ATN
• Static
get
_ATN(): ATN
Returns
ATN
Defined in
kipper/core/src/compiler/lexer-parser/antlr/KipperLexer.ts:875
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:478
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:513
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:464
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:499
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:471
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:506
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:457
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:438
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:486