Class: KipperTargetCodeGenerator
compiler.KipperTargetCodeGenerator
Code generator specifying how a Kipper parse tree should be translated into a specific language.
Since
0.10.0
Table of contents
Constructors
Properties
- additiveExpression
- arrayPrimaryExpression
- assignmentExpression
- bitwiseAndExpression
- bitwiseOrExpression
- bitwiseShiftExpression
- bitwiseXorExpression
- boolPrimaryExpression
- castOrConvertExpression
- compoundStatement
- conditionalExpression
- doWhileLoopIterationStatement
- equalityExpression
- expressionStatement
- fStringPrimaryExpression
- forLoopIterationStatement
- functionCallExpression
- functionDeclaration
- genericTypeSpecifierExpression
- identifierPrimaryExpression
- identifierTypeSpecifierExpression
- ifStatement
- incrementOrDecrementPostfixExpression
- incrementOrDecrementUnaryExpression
- jumpStatement
- lambdaExpression
- logicalAndExpression
- logicalOrExpression
- memberAccessExpression
- multiplicativeExpression
- numberPrimaryExpression
- objectPrimaryExpression
- objectProperty
- operatorModifiedUnaryExpression
- parameterDeclaration
- relationalExpression
- returnStatement
- setUp
- stringPrimaryExpression
- switchStatement
- tangledPrimaryExpression
- typeofTypeSpecifierExpression
- variableDeclaration
- voidOrNullOrUndefinedPrimaryExpression
- whileLoopIterationStatement
- wrapUp
Constructors
constructor
• new KipperTargetCodeGenerator()
Properties
additiveExpression
• Abstract additiveExpression: TargetASTNodeCodeGenerator<AdditiveExpression, TranslatedExpression>
Translates a AdditiveExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:313
arrayPrimaryExpression
• Abstract arrayPrimaryExpression: TargetASTNodeCodeGenerator<ArrayPrimaryExpression, TranslatedExpression>
Translates a ArrayPrimaryExpression into a specific language.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:193
assignmentExpression
• Abstract assignmentExpression: TargetASTNodeCodeGenerator<AssignmentExpression, TranslatedExpression>
Translates a AssignmentExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:363
bitwiseAndExpression
• Abstract bitwiseAndExpression: TargetASTNodeCodeGenerator<BitwiseAndExpression, TranslatedExpression>
Translates a BitwiseAndExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:328
bitwiseOrExpression
• Abstract bitwiseOrExpression: TargetASTNodeCodeGenerator<BitwiseOrExpression, TranslatedExpression>
Translates a BitwiseOrExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:333
bitwiseShiftExpression
• Abstract bitwiseShiftExpression: TargetASTNodeCodeGenerator<BitwiseShiftExpression, TranslatedExpression>
Translates a BitwiseShiftExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:343
bitwiseXorExpression
• Abstract bitwiseXorExpression: TargetASTNodeCodeGenerator<BitwiseXorExpression, TranslatedExpression>
Translates a BitwiseXorExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:338
boolPrimaryExpression
• Abstract boolPrimaryExpression: TargetASTNodeCodeGenerator<BoolPrimaryExpression, TranslatedExpression>
Translates a BoolPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:232
castOrConvertExpression
• Abstract castOrConvertExpression: TargetASTNodeCodeGenerator<CastOrConvertExpression, TranslatedExpression>
Translates a CastOrConvertExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:303
compoundStatement
• Abstract compoundStatement: TargetASTNodeCodeGenerator<CompoundStatement, TranslatedCodeLine[]>
Translates a CompoundStatement into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:113
conditionalExpression
• Abstract conditionalExpression: TargetASTNodeCodeGenerator<ConditionalExpression, TranslatedExpression>
Translates a ConditionalExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:358
doWhileLoopIterationStatement
• Abstract doWhileLoopIterationStatement: TargetASTNodeCodeGenerator<DoWhileLoopIterationStatement, TranslatedCodeLine[]>
Translates a ForLoopIterationStatement into a specific language.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:134
equalityExpression
• Abstract equalityExpression: TargetASTNodeCodeGenerator<EqualityExpression, TranslatedExpression>
Translates a EqualityExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:323
expressionStatement
• Abstract expressionStatement: TargetASTNodeCodeGenerator<ExpressionStatement, TranslatedCodeLine[]>
Translates a ExpressionStatement into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:128
fStringPrimaryExpression
• Abstract fStringPrimaryExpression: TargetASTNodeCodeGenerator<FStringPrimaryExpression, TranslatedExpression>
Translates a FStringPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:227
forLoopIterationStatement
• Abstract forLoopIterationStatement: TargetASTNodeCodeGenerator<ForLoopIterationStatement, TranslatedCodeLine[]>
Translates a ForLoopIterationStatement into a specific language.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:152
functionCallExpression
• Abstract functionCallExpression: TargetASTNodeCodeGenerator<FunctionCallExpression, TranslatedExpression>
Translates a FunctionCallExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:282
functionDeclaration
• Abstract functionDeclaration: TargetASTNodeCodeGenerator<FunctionDeclaration, TranslatedCodeLine[]>
Translates a FunctionDeclaration into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:177
genericTypeSpecifierExpression
• Abstract genericTypeSpecifierExpression: TargetASTNodeCodeGenerator<GenericTypeSpecifierExpression, TranslatedExpression>
Translates a GenericTypeSpecifierExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:245
identifierPrimaryExpression
• Abstract identifierPrimaryExpression: TargetASTNodeCodeGenerator<IdentifierPrimaryExpression, TranslatedExpression>
Translates a IdentifierPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:208
identifierTypeSpecifierExpression
• Abstract identifierTypeSpecifierExpression: TargetASTNodeCodeGenerator<IdentifierTypeSpecifierExpression, TranslatedExpression>
Translates a IdentifierTypeSpecifierExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:237
ifStatement
• Abstract ifStatement: TargetASTNodeCodeGenerator<IfStatement, TranslatedCodeLine[]>
Translates a IfStatement into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:118
incrementOrDecrementPostfixExpression
• Abstract incrementOrDecrementPostfixExpression: TargetASTNodeCodeGenerator<IncrementOrDecrementPostfixExpression, TranslatedExpression>
Translates a incrementOrDecrementPostfixExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:274
incrementOrDecrementUnaryExpression
• Abstract incrementOrDecrementUnaryExpression: TargetASTNodeCodeGenerator<IncrementOrDecrementUnaryExpression, TranslatedExpression>
Translates a IncrementOrDecrementUnaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:287
jumpStatement
• Abstract jumpStatement: TargetASTNodeCodeGenerator<JumpStatement, TranslatedCodeLine[]>
Translates a JumpStatement into a specific language.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:161
lambdaExpression
• Abstract lambdaExpression: TargetASTNodeCodeGenerator<LambdaExpression, TranslatedExpression>
Translates a LambdaExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:368
logicalAndExpression
• Abstract logicalAndExpression: TargetASTNodeCodeGenerator<LogicalAndExpression, TranslatedExpression>
Translates a LogicalAndExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:348
logicalOrExpression
• Abstract logicalOrExpression: TargetASTNodeCodeGenerator<LogicalOrExpression, TranslatedExpression>
Translates a LogicalOrExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:353
memberAccessExpression
• Abstract memberAccessExpression: TargetASTNodeCodeGenerator<MemberAccessExpression, TranslatedExpression>
Translates a MemberAccessExpression into a specific language.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:217
multiplicativeExpression
• Abstract multiplicativeExpression: TargetASTNodeCodeGenerator<MultiplicativeExpression, TranslatedExpression>
Translates a MultiplicativeExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:308
numberPrimaryExpression
• Abstract numberPrimaryExpression: TargetASTNodeCodeGenerator<NumberPrimaryExpression, TranslatedExpression>
Translates a NumberPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:187
objectPrimaryExpression
• Abstract objectPrimaryExpression: TargetASTNodeCodeGenerator<ObjectPrimaryExpression, TranslatedExpression>
Translates a ObjectPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:198
objectProperty
• Abstract objectProperty: TargetASTNodeCodeGenerator<ObjectProperty, TranslatedExpression>
Translates a ObjectProperty into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:203
operatorModifiedUnaryExpression
• Abstract operatorModifiedUnaryExpression: TargetASTNodeCodeGenerator<OperatorModifiedUnaryExpression, TranslatedExpression>
Translates a OperatorModifiedUnaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:295
parameterDeclaration
• Abstract parameterDeclaration: TargetASTNodeCodeGenerator<ParameterDeclaration, TranslatedCodeLine[]>
Translates a ParameterDeclaration into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:172
relationalExpression
• Abstract relationalExpression: TargetASTNodeCodeGenerator<RelationalExpression, TranslatedExpression>
Translates a RelationalExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:318
returnStatement
• Abstract returnStatement: TargetASTNodeCodeGenerator<ReturnStatement, TranslatedCodeLine[]>
Translates a JumpStatement into a specific language.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:167
setUp
• Abstract setUp: TargetSetUpCodeGenerator
Code generation function, which is called at the start of a translation and generates the dependencies for a file in the target language.
This should be only used to set up a Kipper file in the target language and not as a replacement to KipperTargetBuiltInGenerator.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:98
stringPrimaryExpression
• Abstract stringPrimaryExpression: TargetASTNodeCodeGenerator<StringPrimaryExpression, TranslatedExpression>
Translates a StringPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:222
switchStatement
• Abstract switchStatement: TargetASTNodeCodeGenerator<SwitchStatement, TranslatedCodeLine[]>
Translates a SwitchStatement into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:123
tangledPrimaryExpression
• Abstract tangledPrimaryExpression: TargetASTNodeCodeGenerator<TangledPrimaryExpression, TranslatedExpression>
Translates a TangledPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:261
typeofTypeSpecifierExpression
• Abstract typeofTypeSpecifierExpression: TargetASTNodeCodeGenerator<TypeofTypeSpecifierExpression, TranslatedExpression>
Translates a TypeofTypeSpecifierExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:253
variableDeclaration
• Abstract variableDeclaration: TargetASTNodeCodeGenerator<VariableDeclaration, TranslatedCodeLine[]>
Translates a VariableDeclaration into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:182
voidOrNullOrUndefinedPrimaryExpression
• Abstract voidOrNullOrUndefinedPrimaryExpression: TargetASTNodeCodeGenerator<VoidOrNullOrUndefinedPrimaryExpression, TranslatedExpression>
Translates a VoidOrNullOrUndefinedPrimaryExpression into a specific language.
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:266
whileLoopIterationStatement
• Abstract whileLoopIterationStatement: TargetASTNodeCodeGenerator<WhileLoopIterationStatement, TranslatedCodeLine[]>
Translates a ForLoopIterationStatement into a specific language.
Since
0.10.0s
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:143
wrapUp
• Abstract wrapUp: TargetWrapUpCodeGenerator
Code generation function, which is called at the end of a translation and should wrap up a program in the target language.
This should be only used to add additional items to finish a Kipper file in the target language and not as a replacement to KipperTargetBuiltInGenerator.
Since
0.10.0
Defined in
kipper/core/src/compiler/target-presets/translation/code-generator.ts:108