• 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

    Interface: ForLoopStatementSemantics

    compiler.ForLoopStatementSemantics

    Semantics for AST Node ForLoopIterationStatement.

    Since

    0.10.0

    Hierarchy

    • IterationStatementSemantics

      ↳ ForLoopStatementSemantics

    Table of contents

    Properties

    • forDeclaration
    • forIterationExp
    • loopBody
    • loopCondition

    Properties

    forDeclaration

    • forDeclaration: undefined | Expression<ExpressionSemantics, ExpressionTypeSemantics, CompilableASTNode<SemanticData, TypeData>> | VariableDeclaration

    The declaration/first statement of the loop, which is executed before the loop condition is evaluated.

    This may also simply be a single expression, if the loop does not have a declaration.

    Since

    0.10.0

    Defined in

    kipper/core/src/compiler/ast/nodes/statements/iteration-statement/for-loop-iteration-statement/for-loop-iteration-statement-semantics.ts:21


    forIterationExp

    • forIterationExp: undefined | Expression<ExpressionSemantics, ExpressionTypeSemantics, CompilableASTNode<SemanticData, TypeData>>

    The for iteration expression of the loop, which is executed after the loop body is executed. This is used to update the loop variable or execute any other code that should be executed after each loop iteration.

    Since

    0.10.0

    Defined in

    kipper/core/src/compiler/ast/nodes/statements/iteration-statement/for-loop-iteration-statement/for-loop-iteration-statement-semantics.ts:27


    loopBody

    • loopBody: Statement<StatementSemantics, StatementTypeSemantics>

    The body of the loop, which is executed as long as loopCondition is true.

    Since

    0.10.0

    Overrides

    IterationStatementSemantics.loopBody

    Defined in

    kipper/core/src/compiler/ast/nodes/statements/iteration-statement/for-loop-iteration-statement/for-loop-iteration-statement-semantics.ts:38


    loopCondition

    • loopCondition: undefined | Expression<ExpressionSemantics, ExpressionTypeSemantics, CompilableASTNode<SemanticData, TypeData>>

    The for condition of the loop, which is evaluated after the loop body is executed. If this evaluates to true, the loop will continue executing.

    Since

    0.10.0

    Overrides

    IterationStatementSemantics.loopCondition

    Defined in

    kipper/core/src/compiler/ast/nodes/statements/iteration-statement/for-loop-iteration-statement/for-loop-iteration-statement-semantics.ts:33

  • 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.