• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • 0.11.0 /
      • Kipper API /
      • Module /
      • @kipper/core /
      • compiler
    Kipper Docs
    • next
    • latest
    • 0.11.0
    • 0.10.4
    • 0.9.2
    • Overview

    • Quickstart

    • Goals for Kipper

    • Supported platforms

    • Usage Examples

      • Overview

      • Compiler Setup

        • Overview

          • index

          • compiler

          • errors

          • logger

          • utils

          • config

          • index

          • index

        • Overview

        • new

        • run

        • compile

        • help

        • version

    • Variables

      • Overview

      • String Type

      • Number Type

      • Boolean Type

      • Void Type

      • Null Type

      • Undefined Type

      • Array Type

      • Overview

      • Arithmetic Expression

      • Assignment Expression

      • Conditional Expressions

      • Logical Expressions

      • Bitwise Expression

      • Relational Expressions

      • Convert Expression

      • F-String Expression

      • Member Access Expression

      • Function Call Expression

      • Overview

      • Expression Statement

      • If Statement

      • While Loop

      • Do-While Loop

      • For Loop

      • Compound Statement

      • Jump Statement

    • Functions

    • Comments

    • Built-in Functions

      • 0.11.0 /
      • Kipper API /
      • Module /
      • @kipper/core /
      • compiler
    • 0.11.0 /
    • Kipper API /
    • Module /
    • @kipper/core /
    • compiler

    Edit page

    Class: KipperFileASTGenerator

    compiler.KipperFileASTGenerator

    The AST generator, which acts as a listener for a KipperProgramContext, which walks through a parse tree generated by the KipperParser and generates an abstract syntax tree based on the parse tree.

    Since

    0.10.0

    Implements

    • KipperParserListener
    • ParseTreeListener

    Table of contents

    Constructors

    • constructor

    Properties

    • _currentPrimaryNode
    • _declarationFactory
    • _expressionFactory
    • _isExternalItem
    • _isFunctionDefinition
    • _rootNode
    • _statementFactory
    • enterActualAdditiveExpression
    • enterActualAssignmentExpression
    • enterActualBitwiseAndExpression
    • enterActualBitwiseOrExpression
    • enterActualBitwiseShiftExpression
    • enterActualBitwiseXorExpression
    • enterActualCastOrConvertExpression
    • enterActualConditionalExpression
    • enterActualEqualityExpression
    • enterActualLogicalAndExpression
    • enterActualLogicalOrExpression
    • enterActualMultiplicativeExpression
    • enterActualRelationalExpression
    • enterArrayPrimaryExpression
    • enterBoolPrimaryExpression
    • enterBracketNotationMemberAccessExpression
    • enterCompoundStatement
    • enterDoWhileLoopIterationStatement
    • enterDotNotationMemberAccessExpression
    • enterExplicitCallFunctionCallExpression
    • enterExpressionStatement
    • enterFStringPrimaryExpression
    • enterForLoopIterationStatement
    • enterFunctionCallExpression
    • enterFunctionDeclaration
    • enterGenericTypeSpecifierExpression
    • enterIdentifierPrimaryExpression
    • enterIdentifierTypeSpecifierExpression
    • enterIfStatement
    • enterIncrementOrDecrementPostfixExpression
    • enterIncrementOrDecrementUnaryExpression
    • enterJumpStatement
    • enterLambdaExpression
    • enterNumberPrimaryExpression
    • enterObjectPrimaryExpression
    • enterObjectProperty
    • enterOperatorModifiedUnaryExpression
    • enterParameterDeclaration
    • enterReturnStatement
    • enterSliceNotationMemberAccessExpression
    • enterStringPrimaryExpression
    • enterSwitchStatement
    • enterTangledPrimaryExpression
    • enterTypeofTypeSpecifierExpression
    • enterVariableDeclaration
    • enterVoidOrNullOrUndefinedPrimaryExpression
    • enterWhileLoopIterationStatement
    • exitActualAdditiveExpression
    • exitActualAssignmentExpression
    • exitActualBitwiseAndExpression
    • exitActualBitwiseOrExpression
    • exitActualBitwiseShiftExpression
    • exitActualBitwiseXorExpression
    • exitActualCastOrConvertExpression
    • exitActualConditionalExpression
    • exitActualEqualityExpression
    • exitActualLogicalAndExpression
    • exitActualLogicalOrExpression
    • exitActualMultiplicativeExpression
    • exitActualRelationalExpression
    • exitArrayPrimaryExpression
    • exitBoolPrimaryExpression
    • exitBracketNotationMemberAccessExpression
    • exitCompoundStatement
    • exitDoWhileLoopIterationStatement
    • exitDotNotationMemberAccessExpression
    • exitExplicitCallFunctionCallExpression
    • exitExpressionStatement
    • exitFStringPrimaryExpression
    • exitForLoopIterationStatement
    • exitFunctionCallExpression
    • exitFunctionDeclaration
    • exitGenericTypeSpecifierExpression
    • exitIdentifierPrimaryExpression
    • exitIdentifierTypeSpecifierExpression
    • exitIfStatement
    • exitIncrementOrDecrementPostfixExpression
    • exitIncrementOrDecrementUnaryExpression
    • exitJumpStatement
    • exitLambdaExpression
    • exitNumberPrimaryExpression
    • exitObjectPrimaryExpression
    • exitObjectProperty
    • exitOperatorModifiedUnaryExpression
    • exitParameterDeclaration
    • exitReturnStatement
    • exitSliceNotationMemberAccessExpression
    • exitStringPrimaryExpression
    • exitSwitchStatement
    • exitTangledPrimaryExpression
    • exitTypeofTypeSpecifierExpression
    • exitVariableDeclaration
    • exitVoidOrNullOrUndefinedPrimaryExpression
    • exitWhileLoopIterationStatement

    Accessors

    • currentNode
    • declarationFactory
    • expressionFactory
    • programCtx
    • rootNode
    • statementFactory

    Methods

    • enterDeclaration
    • enterDeclarator
    • enterDirectDeclarator
    • enterEveryRule
    • enterExpression
    • enterExternalItem
    • enterInitDeclarator
    • enterInitializer
    • enterLogicalAndExpression
    • enterParameterList
    • enterPassOnLogicalAndExpression
    • enterStorageTypeSpecifier
    • enterSwitchLabeledStatement
    • enterTypeSpecifierExpression
    • exitDeclaration
    • exitDeclarator
    • exitDirectDeclarator
    • exitEveryRule
    • exitExpression
    • exitExternalItem
    • exitInitDeclarator
    • exitInitializer
    • exitLogicalAndExpression
    • exitParameterList
    • exitPassOnLogicalAndExpression
    • exitStorageTypeSpecifier
    • exitSwitchLabeledStatement
    • exitTypeSpecifierExpression
    • handleEnteringTreeNode
    • handleExitingTreeNode
    • isDeclarationContext
    • isExpressionContext
    • isStatementContext

    Constructors

    constructor

    • new KipperFileASTGenerator(programCtx, rootNode)

    Parameters

    Name Type
    programCtx KipperProgramContext
    rootNode CompilationUnitContext

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:117

    Properties

    _currentPrimaryNode

    • Private _currentPrimaryNode: undefined | Statement<StatementSemantics, StatementTypeSemantics> | Expression<ExpressionSemantics, ExpressionTypeSemantics, CompilableASTNode<SemanticData, TypeData>> | Declaration<DeclarationSemantics, DeclarationTypeSemantics>

    The current Kipper AST node that is being walked through right now. This is the instance where current metadata should be added to and read from, as this instance will represent and handle the context rules that were walked through during this operation.

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:115


    _declarationFactory

    • Private Readonly _declarationFactory: DeclarationASTNodeFactory

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:96


    _expressionFactory

    • Private Readonly _expressionFactory: ExpressionASTNodeFactory

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:94


    _isExternalItem

    • Private _isExternalItem: boolean

    If this is true, the current context is inside an external item and automatically indicates _isFunctionDefinition is false.

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:102


    _isFunctionDefinition

    • Private _isFunctionDefinition: boolean

    If this is true, the current context is inside a function definition and automatically indicates _isExternalItem is false.

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:108


    _rootNode

    • Private Readonly _rootNode: RootASTNode

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:93


    _statementFactory

    • Private Readonly _statementFactory: StatementASTNodeFactory

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:95


    enterActualAdditiveExpression

    • enterActualAdditiveExpression: (ctx: ActualAdditiveExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualAdditiveExpression labeled alternative in KipperParser.additiveExpression.

    Parameters
    Name Type Description
    ctx ActualAdditiveExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualAdditiveExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:603


    enterActualAssignmentExpression

    • enterActualAssignmentExpression: (ctx: ActualAssignmentExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualAssignmentExpression Labeled alternative in KipperParser.assignmentExpression.

    Parameters
    Name Type Description
    ctx ActualAssignmentExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualAssignmentExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:817


    enterActualBitwiseAndExpression

    • enterActualBitwiseAndExpression: (ctx: ActualBitwiseAndExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the KipperParser.bitwiseAndExpression

    Parameters
    Name Type
    ctx ActualBitwiseAndExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.enterActualBitwiseAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:751


    enterActualBitwiseOrExpression

    • enterActualBitwiseOrExpression: (ctx: ActualBitwiseOrExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the KipperParser.bitwiseOrExpression

    Parameters
    Name Type
    ctx ActualBitwiseOrExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.enterActualBitwiseOrExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:741


    enterActualBitwiseShiftExpression

    • enterActualBitwiseShiftExpression: (ctx: ActualBitwiseShiftExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the KipperParser.bitwiseShiftExpression

    Parameters
    Name Type
    ctx ActualBitwiseShiftExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.enterActualBitwiseShiftExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:773


    enterActualBitwiseXorExpression

    • enterActualBitwiseXorExpression: (ctx: ActualBitwiseXorExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the KipperParser.bitwiseXorExpression

    Parameters
    Name Type
    ctx ActualBitwiseXorExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.enterActualBitwiseXorExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:762


    enterActualCastOrConvertExpression

    • enterActualCastOrConvertExpression: (ctx: ActualCastOrConvertExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualCastOrConvertExpression labeled alternative in KipperParser.castOrConvertExpression.

    Parameters
    Name Type Description
    ctx ActualCastOrConvertExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualCastOrConvertExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:557


    enterActualConditionalExpression

    • enterActualConditionalExpression: (ctx: ActualConditionalExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualConditionalExpression Labeled alternative in KipperParser.conditionalExpression.

    Parameters
    Name Type Description
    ctx ActualConditionalExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualConditionalExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:794


    enterActualEqualityExpression

    • enterActualEqualityExpression: (ctx: ActualEqualityExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualEqualityExpression labeled alternative in KipperParser.equalityExpression.

    Parameters
    Name Type Description
    ctx ActualEqualityExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualEqualityExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:646


    enterActualLogicalAndExpression

    • enterActualLogicalAndExpression: (ctx: ActualLogicalAndExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualLogicalAndExpression Labeled alternative in KipperParser.logicalAndExpression.

    Parameters
    Name Type Description
    ctx ActualLogicalAndExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualLogicalAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:703


    enterActualLogicalOrExpression

    • enterActualLogicalOrExpression: (ctx: ActualLogicalOrExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualLogicalOrExpression Labeled alternative in KipperParser.logicalOrExpression.

    Parameters
    Name Type Description
    ctx ActualLogicalOrExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualLogicalOrExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:725


    enterActualMultiplicativeExpression

    • enterActualMultiplicativeExpression: (ctx: ActualMultiplicativeExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualMultiplicativeExpression Labeled alternative in KipperParser.multiplicativeExpression.

    Parameters
    Name Type Description
    ctx ActualMultiplicativeExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualMultiplicativeExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:580


    enterActualRelationalExpression

    • enterActualRelationalExpression: (ctx: ActualRelationalExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualRelationalExpression labeled alternative in KipperParser.relationalExpression.

    Parameters
    Name Type Description
    ctx ActualRelationalExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterActualRelationalExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:624


    enterArrayPrimaryExpression

    • enterArrayPrimaryExpression: (ctx: ArrayPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.arrayPrimaryExpression.

    Parameters
    Name Type Description
    ctx ArrayPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterArrayPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:342


    enterBoolPrimaryExpression

    • enterBoolPrimaryExpression: (ctx: BoolPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.boolPrimaryExpression.

    Parameters
    Name Type Description
    ctx BoolPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterBoolPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:380


    enterBracketNotationMemberAccessExpression

    • enterBracketNotationMemberAccessExpression: (ctx: BracketNotationMemberAccessExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the bracketNotationMemberAccessExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx BracketNotationMemberAccessExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterBracketNotationMemberAccessExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:431


    enterCompoundStatement

    • enterCompoundStatement: (ctx: CompoundStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.compoundStatement.

    Parameters
    Name Type Description
    ctx CompoundStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterCompoundStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:869


    enterDoWhileLoopIterationStatement

    • enterDoWhileLoopIterationStatement: (ctx: DoWhileLoopIterationStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.doWhileLoopIterationStatement.

    Parameters
    Name Type Description
    ctx DoWhileLoopIterationStatementContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.enterDoWhileLoopIterationStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:966


    enterDotNotationMemberAccessExpression

    • enterDotNotationMemberAccessExpression: (ctx: DotNotationMemberAccessExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the dotNotationMemberAccessExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx DotNotationMemberAccessExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterDotNotationMemberAccessExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:415


    enterExplicitCallFunctionCallExpression

    • enterExplicitCallFunctionCallExpression: (ctx: ExplicitCallFunctionCallExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the explicitCallFunctionCallExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx ExplicitCallFunctionCallExpressionContext The parse tree (instance of KipperParserRuleContext)..
    Returns

    void

    Implementation of

    KipperParserListener.enterExplicitCallFunctionCallExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:477


    enterExpressionStatement

    • enterExpressionStatement: (ctx: ExpressionStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.expressionStatement.

    Parameters
    Name Type Description
    ctx ExpressionStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterExpressionStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:857


    enterFStringPrimaryExpression

    • enterFStringPrimaryExpression: (ctx: FStringPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.fStringPrimaryExpression.

    Parameters
    Name Type Description
    ctx FStringPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterFStringPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:306


    enterForLoopIterationStatement

    • enterForLoopIterationStatement: (ctx: ForLoopIterationStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.forLoopIterationStatement.

    Parameters
    Name Type Description
    ctx ForLoopIterationStatementContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.enterForLoopIterationStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:940


    enterFunctionCallExpression

    • enterFunctionCallExpression: (ctx: FunctionCallExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the functionCallExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx FunctionCallExpressionContext The parse tree (instance of KipperParserRuleContext)..
    Returns

    void

    Implementation of

    KipperParserListener.enterFunctionCallExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:463


    enterFunctionDeclaration

    • enterFunctionDeclaration: (ctx: FunctionDeclarationContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.functionDefinition.

    Parameters
    Name Type Description
    ctx FunctionDeclarationContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterFunctionDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1034


    enterGenericTypeSpecifierExpression

    • enterGenericTypeSpecifierExpression: (ctx: GenericTypeSpecifierExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.genericTypeSpecifier.

    Parameters
    Name Type Description
    ctx GenericTypeSpecifierExpressionContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.enterGenericTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1100


    enterIdentifierPrimaryExpression

    • enterIdentifierPrimaryExpression: (ctx: IdentifierPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.identifierPrimaryExpression.

    Parameters
    Name Type Description
    ctx IdentifierPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterIdentifierPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:280


    enterIdentifierTypeSpecifierExpression

    • enterIdentifierTypeSpecifierExpression: (ctx: IdentifierTypeSpecifierExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.identifierTypeSpecifier.

    Parameters
    Name Type Description
    ctx IdentifierTypeSpecifierExpressionContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.enterIdentifierTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1086


    enterIfStatement

    • enterIfStatement: (ctx: IfStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the ifStatement labeled alternative in KipperParser.selectionStatement.

    Parameters
    Name Type Description
    ctx IfStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterIfStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:889


    enterIncrementOrDecrementPostfixExpression

    • enterIncrementOrDecrementPostfixExpression: (ctx: IncrementOrDecrementPostfixExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.incrementOrDecrementPostfixExpression.

    Parameters
    Name Type Description
    ctx IncrementOrDecrementPostfixExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterIncrementOrDecrementPostfixExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:499


    enterIncrementOrDecrementUnaryExpression

    • enterIncrementOrDecrementUnaryExpression: (ctx: IncrementOrDecrementUnaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.incrementOrDecrementUnaryExpression.

    Parameters
    Name Type Description
    ctx IncrementOrDecrementUnaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterIncrementOrDecrementUnaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:521


    enterJumpStatement

    • enterJumpStatement: (ctx: JumpStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.jumpStatement.

    Parameters
    Name Type Description
    ctx JumpStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterJumpStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:994


    enterLambdaExpression

    • enterLambdaExpression: (ctx: LambdaExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the actualBitwiseShiftExpression

    Parameters
    Name Type
    ctx LambdaExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.enterLambdaExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:658


    enterNumberPrimaryExpression

    • enterNumberPrimaryExpression: (ctx: NumberPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.numberPrimaryExpression.

    Parameters
    Name Type Description
    ctx NumberPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterNumberPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:330


    enterObjectPrimaryExpression

    • enterObjectPrimaryExpression: (ctx: ObjectPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.objectPrimaryExpression.

    Parameters
    Name Type Description
    ctx ObjectPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterObjectPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:354


    enterObjectProperty

    • enterObjectProperty: (ctx: ObjectPropertyContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.objectProperty.

    Since

    0.11.0

    Parameters
    Name Type Description
    ctx ObjectPropertyContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterObjectProperty

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:367


    enterOperatorModifiedUnaryExpression

    • enterOperatorModifiedUnaryExpression: (ctx: OperatorModifiedUnaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.operatorModifiedUnaryExpression.

    Parameters
    Name Type Description
    ctx OperatorModifiedUnaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterOperatorModifiedUnaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:535


    enterParameterDeclaration

    • enterParameterDeclaration: (ctx: ParameterDeclarationContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.parameterDeclaration.

    Parameters
    Name Type Description
    ctx ParameterDeclarationContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterParameterDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1046


    enterReturnStatement

    • enterReturnStatement: (ctx: ReturnStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.returnStatement.

    Parameters
    Name Type Description
    ctx ReturnStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterReturnStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:982


    enterSliceNotationMemberAccessExpression

    • enterSliceNotationMemberAccessExpression: (ctx: SliceNotationMemberAccessExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the sliceNotationMemberAccessExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx SliceNotationMemberAccessExpressionContext The parse tree (instance of KipperParserRuleContext)..
    Returns

    void

    Implementation of

    KipperParserListener.enterSliceNotationMemberAccessExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:447


    enterStringPrimaryExpression

    • enterStringPrimaryExpression: (ctx: StringPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.stringPrimaryExpression.

    Parameters
    Name Type Description
    ctx StringPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterStringPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:294


    enterSwitchStatement

    • enterSwitchStatement: (ctx: SwitchStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by the switchStatement labeled alternative in KipperParser.selectionStatement.

    Parameters
    Name Type Description
    ctx SwitchStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterSwitchStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:903


    enterTangledPrimaryExpression

    • enterTangledPrimaryExpression: (ctx: TangledPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.tangledPrimaryExpression.

    Parameters
    Name Type Description
    ctx TangledPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterTangledPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:318


    enterTypeofTypeSpecifierExpression

    • enterTypeofTypeSpecifierExpression: (ctx: TypeofTypeSpecifierExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.typeofTypeSpecifier.

    Parameters
    Name Type Description
    ctx TypeofTypeSpecifierExpressionContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.enterTypeofTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1114


    enterVariableDeclaration

    • enterVariableDeclaration: (ctx: VariableDeclarationContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.variableDeclaration.

    Parameters
    Name Type Description
    ctx VariableDeclarationContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterVariableDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1022


    enterVoidOrNullOrUndefinedPrimaryExpression

    • enterVoidOrNullOrUndefinedPrimaryExpression: (ctx: VoidOrNullOrUndefinedPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.voidOrNullOrUndefinedPrimaryExpression.

    Parameters
    Name Type Description
    ctx VoidOrNullOrUndefinedPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.enterVoidOrNullOrUndefinedPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:392


    enterWhileLoopIterationStatement

    • enterWhileLoopIterationStatement: (ctx: WhileLoopIterationStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Enter a parse tree produced by KipperParser.whileLoopIterationStatement.

    Parameters
    Name Type Description
    ctx WhileLoopIterationStatementContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.enterWhileLoopIterationStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:952


    exitActualAdditiveExpression

    • exitActualAdditiveExpression: (ctx: ActualAdditiveExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualAdditiveExpression labeled alternative in KipperParser.additiveExpression.

    Parameters
    Name Type Description
    ctx ActualAdditiveExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualAdditiveExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:610


    exitActualAssignmentExpression

    • exitActualAssignmentExpression: (ctx: ActualAssignmentExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualAssignmentExpression Labeled alternative in KipperParser.assignmentExpression.

    Parameters
    Name Type Description
    ctx ActualAssignmentExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualAssignmentExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:825


    exitActualBitwiseAndExpression

    • exitActualBitwiseAndExpression: (ctx: ActualBitwiseAndExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the KipperParser.bitwiseAndExpression

    Parameters
    Name Type
    ctx ActualBitwiseAndExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.exitActualBitwiseAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:757


    exitActualBitwiseOrExpression

    • exitActualBitwiseOrExpression: (ctx: ActualBitwiseOrExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the KipperParser.bitwiseOrExpression

    Parameters
    Name Type
    ctx ActualBitwiseOrExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.exitActualBitwiseOrExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:746


    exitActualBitwiseShiftExpression

    • exitActualBitwiseShiftExpression: (ctx: ActualBitwiseShiftExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the KipperParser.bitwiseShiftExpression

    Parameters
    Name Type
    ctx ActualBitwiseShiftExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.exitActualBitwiseShiftExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:779


    exitActualBitwiseXorExpression

    • exitActualBitwiseXorExpression: (ctx: ActualBitwiseXorExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the KipperParser.bitwiseXorExpression

    Parameters
    Name Type
    ctx ActualBitwiseXorExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.exitActualBitwiseXorExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:768


    exitActualCastOrConvertExpression

    • exitActualCastOrConvertExpression: (ctx: ActualCastOrConvertExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualCastOrConvertExpression labeled alternative in KipperParser.castOrConvertExpression.

    Parameters
    Name Type Description
    ctx ActualCastOrConvertExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualCastOrConvertExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:565


    exitActualConditionalExpression

    • exitActualConditionalExpression: (ctx: ActualConditionalExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualConditionalExpression Labeled alternative in KipperParser.conditionalExpression.

    Parameters
    Name Type Description
    ctx ActualConditionalExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualConditionalExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:802


    exitActualEqualityExpression

    • exitActualEqualityExpression: (ctx: ActualEqualityExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualEqualityExpression labeled alternative in KipperParser.equalityExpression.

    Parameters
    Name Type Description
    ctx ActualEqualityExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualEqualityExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:653


    exitActualLogicalAndExpression

    • exitActualLogicalAndExpression: (ctx: ActualLogicalAndExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualLogicalAndExpression Labeled alternative in KipperParser.logicalAndExpression.

    Parameters
    Name Type Description
    ctx ActualLogicalAndExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualLogicalAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:711


    exitActualLogicalOrExpression

    • exitActualLogicalOrExpression: (ctx: ActualLogicalOrExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualLogicalOrExpression Labeled alternative in KipperParser.logicalOrExpression.

    Parameters
    Name Type Description
    ctx ActualLogicalOrExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualLogicalOrExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:732


    exitActualMultiplicativeExpression

    • exitActualMultiplicativeExpression: (ctx: ActualMultiplicativeExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualMultiplicativeExpression Labeled alternative in KipperParser.multiplicativeExpression.

    Parameters
    Name Type Description
    ctx ActualMultiplicativeExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualMultiplicativeExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:588


    exitActualRelationalExpression

    • exitActualRelationalExpression: (ctx: ActualRelationalExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualRelationalExpression labeled alternative in KipperParser.relationalExpression.

    Parameters
    Name Type Description
    ctx ActualRelationalExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitActualRelationalExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:632


    exitArrayPrimaryExpression

    • exitArrayPrimaryExpression: (ctx: ArrayPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.arrayPrimaryExpression.

    Parameters
    Name Type Description
    ctx ArrayPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitArrayPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:348


    exitBoolPrimaryExpression

    • exitBoolPrimaryExpression: (ctx: BoolPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.boolPrimaryExpression.

    Parameters
    Name Type Description
    ctx BoolPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitBoolPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:386


    exitBracketNotationMemberAccessExpression

    • exitBracketNotationMemberAccessExpression: (ctx: BracketNotationMemberAccessExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the bracketNotationMemberAccessExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx BracketNotationMemberAccessExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitBracketNotationMemberAccessExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:439


    exitCompoundStatement

    • exitCompoundStatement: (ctx: CompoundStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.compoundStatement.

    Parameters
    Name Type Description
    ctx CompoundStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitCompoundStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:875


    exitDoWhileLoopIterationStatement

    • exitDoWhileLoopIterationStatement: (ctx: DoWhileLoopIterationStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.doWhileLoopIterationStatement.

    Parameters
    Name Type Description
    ctx DoWhileLoopIterationStatementContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.exitDoWhileLoopIterationStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:973


    exitDotNotationMemberAccessExpression

    • exitDotNotationMemberAccessExpression: (ctx: DotNotationMemberAccessExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the dotNotationMemberAccessExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx DotNotationMemberAccessExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitDotNotationMemberAccessExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:423


    exitExplicitCallFunctionCallExpression

    • exitExplicitCallFunctionCallExpression: (ctx: ExplicitCallFunctionCallExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the explicitCallFunctionCallExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx ExplicitCallFunctionCallExpressionContext The parse tree (instance of KipperParserRuleContext)..
    Returns

    void

    Implementation of

    KipperParserListener.exitExplicitCallFunctionCallExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:485


    exitExpressionStatement

    • exitExpressionStatement: (ctx: ExpressionStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.expressionStatement.

    Parameters
    Name Type Description
    ctx ExpressionStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitExpressionStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:863


    exitFStringPrimaryExpression

    • exitFStringPrimaryExpression: (ctx: FStringPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.fStringPrimaryExpression.

    Parameters
    Name Type Description
    ctx FStringPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitFStringPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:312


    exitForLoopIterationStatement

    • exitForLoopIterationStatement: (ctx: ForLoopIterationStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.forLoopIterationStatement.

    Parameters
    Name Type Description
    ctx ForLoopIterationStatementContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.exitForLoopIterationStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:946


    exitFunctionCallExpression

    • exitFunctionCallExpression: (ctx: FunctionCallExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the functionCallExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx FunctionCallExpressionContext The parse tree (instance of KipperParserRuleContext)..
    Returns

    void

    Implementation of

    KipperParserListener.exitFunctionCallExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:470


    exitFunctionDeclaration

    • exitFunctionDeclaration: (ctx: FunctionDeclarationContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.functionDefinition.

    Parameters
    Name Type Description
    ctx FunctionDeclarationContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitFunctionDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1040


    exitGenericTypeSpecifierExpression

    • exitGenericTypeSpecifierExpression: (ctx: GenericTypeSpecifierExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.genericTypeSpecifier.

    Parameters
    Name Type Description
    ctx GenericTypeSpecifierExpressionContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.exitGenericTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1107


    exitIdentifierPrimaryExpression

    • exitIdentifierPrimaryExpression: (ctx: IdentifierPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.identifierPrimaryExpression.

    Parameters
    Name Type Description
    ctx IdentifierPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitIdentifierPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:287


    exitIdentifierTypeSpecifierExpression

    • exitIdentifierTypeSpecifierExpression: (ctx: IdentifierTypeSpecifierExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.identifierTypeSpecifier.

    Parameters
    Name Type Description
    ctx IdentifierTypeSpecifierExpressionContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.exitIdentifierTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1093


    exitIfStatement

    • exitIfStatement: (ctx: IfStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the ifStatement labeled alternative in KipperParser.selectionStatement.

    Parameters
    Name Type Description
    ctx IfStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitIfStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:896


    exitIncrementOrDecrementPostfixExpression

    • exitIncrementOrDecrementPostfixExpression: (ctx: IncrementOrDecrementPostfixExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.incrementOrDecrementPostfixExpression.

    Parameters
    Name Type Description
    ctx IncrementOrDecrementPostfixExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitIncrementOrDecrementPostfixExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:506


    exitIncrementOrDecrementUnaryExpression

    • exitIncrementOrDecrementUnaryExpression: (ctx: IncrementOrDecrementUnaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.incrementOrDecrementUnaryExpression.

    Parameters
    Name Type Description
    ctx IncrementOrDecrementUnaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitIncrementOrDecrementUnaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:528


    exitJumpStatement

    • exitJumpStatement: (ctx: JumpStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.jumpStatement.

    Parameters
    Name Type Description
    ctx JumpStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitJumpStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1000


    exitLambdaExpression

    • exitLambdaExpression: (ctx: LambdaExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the actualBitwiseShiftExpression

    Parameters
    Name Type
    ctx LambdaExpressionContext
    Returns

    void

    Implementation of

    KipperParserListener.exitLambdaExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:663


    exitNumberPrimaryExpression

    • exitNumberPrimaryExpression: (ctx: NumberPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.numberPrimaryExpression.

    Parameters
    Name Type Description
    ctx NumberPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitNumberPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:336


    exitObjectPrimaryExpression

    • exitObjectPrimaryExpression: (ctx: ObjectPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.objectPrimaryExpression.

    Parameters
    Name Type Description
    ctx ObjectPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitObjectPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:360


    exitObjectProperty

    • exitObjectProperty: (ctx: ObjectPropertyContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.objectProperty.

    Since

    0.11.0

    Parameters
    Name Type Description
    ctx ObjectPropertyContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitObjectProperty

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:374


    exitOperatorModifiedUnaryExpression

    • exitOperatorModifiedUnaryExpression: (ctx: OperatorModifiedUnaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.operatorModifiedUnaryExpression.

    Parameters
    Name Type Description
    ctx OperatorModifiedUnaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitOperatorModifiedUnaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:542


    exitParameterDeclaration

    • exitParameterDeclaration: (ctx: ParameterDeclarationContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.parameterDeclaration.

    Parameters
    Name Type Description
    ctx ParameterDeclarationContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitParameterDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1052


    exitReturnStatement

    • exitReturnStatement: (ctx: ReturnStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.returnStatement.

    Parameters
    Name Type Description
    ctx ReturnStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitReturnStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:988


    exitSliceNotationMemberAccessExpression

    • exitSliceNotationMemberAccessExpression: (ctx: SliceNotationMemberAccessExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the sliceNotationMemberAccessExpression Labeled alternative in KipperParser.computedPrimaryExpression.

    Parameters
    Name Type Description
    ctx SliceNotationMemberAccessExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitSliceNotationMemberAccessExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:455


    exitStringPrimaryExpression

    • exitStringPrimaryExpression: (ctx: StringPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.stringPrimaryExpression.

    Parameters
    Name Type Description
    ctx StringPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitStringPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:300


    exitSwitchStatement

    • exitSwitchStatement: (ctx: SwitchStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by the switchStatement labeled alternative in KipperParser.selectionStatement.

    Parameters
    Name Type Description
    ctx SwitchStatementContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitSwitchStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:910


    exitTangledPrimaryExpression

    • exitTangledPrimaryExpression: (ctx: TangledPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.tangledPrimaryExpression.

    Parameters
    Name Type Description
    ctx TangledPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitTangledPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:324


    exitTypeofTypeSpecifierExpression

    • exitTypeofTypeSpecifierExpression: (ctx: TypeofTypeSpecifierExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.typeofTypeSpecifier.

    Parameters
    Name Type Description
    ctx TypeofTypeSpecifierExpressionContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.exitTypeofTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1121


    exitVariableDeclaration

    • exitVariableDeclaration: (ctx: VariableDeclarationContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.variableDeclaration.

    Parameters
    Name Type Description
    ctx VariableDeclarationContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitVariableDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1028


    exitVoidOrNullOrUndefinedPrimaryExpression

    • exitVoidOrNullOrUndefinedPrimaryExpression: (ctx: VoidOrNullOrUndefinedPrimaryExpressionContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.voidOrNullOrUndefinedPrimaryExpression.

    Parameters
    Name Type Description
    ctx VoidOrNullOrUndefinedPrimaryExpressionContext The parse tree (instance of KipperParserRuleContext).
    Returns

    void

    Implementation of

    KipperParserListener.exitVoidOrNullOrUndefinedPrimaryExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:399


    exitWhileLoopIterationStatement

    • exitWhileLoopIterationStatement: (ctx: WhileLoopIterationStatementContext) => void

    Type declaration

    ▸ (ctx): void

    Exit a parse tree produced by KipperParser.whileLoopIterationStatement.

    Parameters
    Name Type Description
    ctx WhileLoopIterationStatementContext the parse tree
    Returns

    void

    Implementation of

    KipperParserListener.exitWhileLoopIterationStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:959

    Accessors

    currentNode

    • Private get currentNode(): RootASTNode | CompilableASTNode<SemanticData, TypeData>

    Returns which token is being processed at the moment and where meta-data should be assigned to.

    Returns

    RootASTNode | CompilableASTNode<SemanticData, TypeData>

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:173


    declarationFactory

    • get declarationFactory(): DeclarationASTNodeFactory

    Returns the declaration factory that is used to create new declaration nodes based on the current Antlr4 context that is being walked through.

    Returns

    DeclarationASTNodeFactory

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:165


    expressionFactory

    • get expressionFactory(): ExpressionASTNodeFactory

    Returns the expression factory that is used to create new expression nodes based on the current Antlr4 context that is being walked through.

    Since

    0.10.0

    Returns

    ExpressionASTNodeFactory

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:148


    programCtx

    • get programCtx(): KipperProgramContext

    Returns the program context that owns this listener and the root node.

    Since

    0.10.0

    Returns

    KipperProgramContext

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:139


    rootNode

    • get rootNode(): RootASTNode

    The root node of the generated abstract syntax tree.

    Since

    0.8.0

    Returns

    RootASTNode

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:131


    statementFactory

    • get statementFactory(): StatementASTNodeFactory

    Returns the statement factory that is used to create new statement nodes based on the current Antlr4 context that is being walked through.

    Since

    0.10.0

    Returns

    StatementASTNodeFactory

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:157

    Methods

    enterDeclaration

    ▸ Optional enterDeclaration(ctx): void

    Enter a parse tree produced by KipperParser.declaration.

    Parameters

    Name Type Description
    ctx DeclarationContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1010


    enterDeclarator

    ▸ Optional enterDeclarator(ctx): void

    Enter a parse tree produced by KipperParser.declarator.

    Parameters

    Name Type Description
    ctx DeclaratorContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterDeclarator

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1140


    enterDirectDeclarator

    ▸ Optional enterDirectDeclarator(ctx): void

    Enter a parse tree produced by KipperParser.directDeclarator.

    Parameters

    Name Type Description
    ctx DirectDeclaratorContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterDirectDeclarator

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1152


    enterEveryRule

    ▸ Optional enterEveryRule(ctx): void

    Function that is called every time an item is entered.

    Parameters

    Name Type Description
    ctx KipperParserRuleContext | ParserRuleContext The context of the rule.

    Returns

    void

    Implementation of

    KipperParserListener.enterEveryRule

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:244


    enterExpression

    ▸ Optional enterExpression(ctx): void

    Enter a parse tree produced by KipperParser.expression.

    Parameters

    Name Type Description
    ctx ExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:833


    enterExternalItem

    ▸ enterExternalItem(ctx): void

    Enter a parse tree produced by the externalItem.

    Parameters

    Name Type Description
    ctx ExternalItemContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterExternalItem

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:260


    enterInitDeclarator

    ▸ Optional enterInitDeclarator(ctx): void

    Enter a parse tree produced by KipperParser.initDeclarator.

    Parameters

    Name Type Description
    ctx InitDeclaratorContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterInitDeclarator

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1074


    enterInitializer

    ▸ Optional enterInitializer(ctx): void

    Enter a parse tree produced by KipperParser.initializer.

    Parameters

    Name Type Description
    ctx InitializerContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterInitializer

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1176


    enterLogicalAndExpression

    ▸ Optional enterLogicalAndExpression(ctx): void

    Enter a parse tree produced by KipperParser.logicalAndExpression.

    Parameters

    Name Type Description
    ctx LogicalAndExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterLogicalAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:676


    enterParameterList

    ▸ Optional enterParameterList(ctx): void

    Enter a parse tree produced by KipperParser.parameterList.

    Parameters

    Name Type Description
    ctx ParameterListContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterParameterList

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1164


    enterPassOnLogicalAndExpression

    ▸ Optional enterPassOnLogicalAndExpression(ctx): void

    Enter a parse tree produced by the passOnLogicalAndExpression Labeled alternative in KipperParser.logicalAndExpression.

    Parameters

    Name Type Description
    ctx PassOnLogicalAndExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterPassOnLogicalAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:689


    enterStorageTypeSpecifier

    ▸ Optional enterStorageTypeSpecifier(ctx): void

    Enter a parse tree produced by KipperParser.storageTypeSpecifier.

    Parameters

    Name Type Description
    ctx StorageTypeSpecifierContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterStorageTypeSpecifier

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1062


    enterSwitchLabeledStatement

    ▸ enterSwitchLabeledStatement(ctx): void

    Enter a parse tree produced by KipperParser.labeledStatement.

    Parameters

    Name Type Description
    ctx SwitchLabeledStatementContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterSwitchLabeledStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:916


    enterTypeSpecifierExpression

    ▸ Optional enterTypeSpecifierExpression(ctx): void

    Enter a parse tree produced by KipperParser.typeSpecifier.

    Parameters

    Name Type Description
    ctx TypeSpecifierExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.enterTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1128


    exitDeclaration

    ▸ Optional exitDeclaration(ctx): void

    Exit a parse tree produced by KipperParser.declaration.

    Parameters

    Name Type Description
    ctx DeclarationContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitDeclaration

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1016


    exitDeclarator

    ▸ Optional exitDeclarator(ctx): void

    Exit a parse tree produced by KipperParser.declarator.

    Parameters

    Name Type Description
    ctx DeclaratorContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitDeclarator

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1146


    exitDirectDeclarator

    ▸ Optional exitDirectDeclarator(ctx): void

    Exit a parse tree produced by KipperParser.directDeclarator.

    Parameters

    Name Type Description
    ctx DirectDeclaratorContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitDirectDeclarator

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1158


    exitEveryRule

    ▸ Optional exitEveryRule(ctx): void

    Function that is called every time an item is exited.

    Parameters

    Name Type Description
    ctx KipperParserRuleContext | ParserRuleContext The context of the rule.

    Returns

    void

    Implementation of

    KipperParserListener.exitEveryRule

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:250


    exitExpression

    ▸ Optional exitExpression(ctx): void

    Exit a parse tree produced by KipperParser.expression.

    Parameters

    Name Type Description
    ctx ExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:839


    exitExternalItem

    ▸ exitExternalItem(ctx): void

    Exit a parse tree produced by the externalItem.

    Parameters

    Name Type Description
    ctx ExternalItemContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitExternalItem

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:268


    exitInitDeclarator

    ▸ Optional exitInitDeclarator(ctx): void

    Exit a parse tree produced by KipperParser.initDeclarator.

    Parameters

    Name Type Description
    ctx InitDeclaratorContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitInitDeclarator

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1080


    exitInitializer

    ▸ Optional exitInitializer(ctx): void

    Exit a parse tree produced by KipperParser.initializer.

    Parameters

    Name Type Description
    ctx InitializerContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitInitializer

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1182


    exitLogicalAndExpression

    ▸ Optional exitLogicalAndExpression(ctx): void

    Exit a parse tree produced by KipperParser.logicalAndExpression.

    Parameters

    Name Type Description
    ctx LogicalAndExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitLogicalAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:682


    exitParameterList

    ▸ Optional exitParameterList(ctx): void

    Exit a parse tree produced by KipperParser.parameterList.

    Parameters

    Name Type Description
    ctx ParameterListContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitParameterList

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1170


    exitPassOnLogicalAndExpression

    ▸ Optional exitPassOnLogicalAndExpression(ctx): void

    Exit a parse tree produced by the passOnLogicalAndExpression Labeled alternative in KipperParser.logicalAndExpression.

    Parameters

    Name Type Description
    ctx PassOnLogicalAndExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitPassOnLogicalAndExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:696


    exitStorageTypeSpecifier

    ▸ Optional exitStorageTypeSpecifier(ctx): void

    Exit a parse tree produced by KipperParser.storageTypeSpecifier.

    Parameters

    Name Type Description
    ctx StorageTypeSpecifierContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitStorageTypeSpecifier

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1068


    exitSwitchLabeledStatement

    ▸ exitSwitchLabeledStatement(ctx): void

    Exit a parse tree produced by KipperParser.labeledStatement.

    Parameters

    Name Type Description
    ctx SwitchLabeledStatementContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitSwitchLabeledStatement

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:924


    exitTypeSpecifierExpression

    ▸ Optional exitTypeSpecifierExpression(ctx): void

    Exit a parse tree produced by KipperParser.typeSpecifier.

    Parameters

    Name Type Description
    ctx TypeSpecifierExpressionContext The parse tree (instance of KipperParserRuleContext).

    Returns

    void

    Implementation of

    KipperParserListener.exitTypeSpecifierExpression

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:1134


    handleEnteringTreeNode

    ▸ Private handleEnteringTreeNode(ctx): void

    Handles an incoming statement context. The handling algorithm is as following:

    • If _currentPrimaryNode is undefined, then it will be created and set as a child of _rootNode
    • Otherwise, generate a new Statement instance, which will be added to the _currentPrimaryNode as a child. Afterwards _currentPrimaryNode will be set to this new instance, as all new context instances must be assigned to it. When the context is left, then the old _currentPrimaryNode will be restored as _currentPrimaryNode, and all further context instances will be assigned to it.

    Parameters

    Name Type
    ctx ASTNodeParserContext

    Returns

    void

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:191


    handleExitingTreeNode

    ▸ Private handleExitingTreeNode(): void

    Handles an exiting node context. This is required to properly generate the AST node hierarchy.

    Returns

    void

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:231


    isDeclarationContext

    ▸ Private isDeclarationContext(ctx): boolean

    Parameters

    Name Type
    ctx ASTNodeParserContext

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:219


    isExpressionContext

    ▸ Private isExpressionContext(ctx): boolean

    Parameters

    Name Type
    ctx ASTNodeParserContext

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:223


    isStatementContext

    ▸ Private isStatementContext(ctx): boolean

    Parameters

    Name Type
    ctx ASTNodeParserContext

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/ast/ast-generator.ts:215

  • Developed at:

    • Releases
    • GitHub
    • Security
    • Issue Tracker
    • License
  • Copyright © 2021-2026 Luna Klatzer, 2024-2025 Lorenz Holzbauer & Fabian Baitura.
    Kipper is licensed under the GPL-3.0-or-later license.