• 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: CompileConfig

    compiler.CompileConfig

    Compilation Configuration for a Kipper program. This interface will be wrapped using EvaluatedCompileConfig if it's passed to compile.

    Since

    0.1.0

    Implemented by

    • EvaluatedCompileConfig

    Table of contents

    Properties

    • abortOnFirstError
    • builtInFunctions
    • builtInVariables
    • extendBuiltInFunctions
    • extendBuiltInVariables
    • fileName
    • optimisationOptions
    • recover
    • target
    • warnings

    Properties

    abortOnFirstError

    • Optional abortOnFirstError: boolean

    If set to true, the compiler will throw the first error that is encountered and cancel the compilation.

    This per default overwrites recover.

    Since

    0.10.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:98


    builtInFunctions

    • Optional builtInFunctions: BuiltInFunction[]

    The built-in functions that will be available in a Kipper program. This option overwrites the default built-ins, if you wish to only add new built-in functions write to extendBuiltInFunctions.

    All built-in functions defined here must be implemented by the target.builtInGenerator.

    Defined in

    kipper/core/src/compiler/compile-config.ts:29


    builtInVariables

    • Optional builtInVariables: BuiltInVariable[]

    The built-in variables that will be available in a Kipper program. This option overwrites the default built-ins, if you wish to only add new built-in variables write to extendBuiltInVariables.

    All built-in variables defined here must be implemented by the target.builtInGenerator.

    Since

    0.10.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:46


    extendBuiltInFunctions

    • Optional extendBuiltInFunctions: BuiltInFunction[]

    Extends the builtInFunctions with the specified items. If builtInFunctions is undefined, then it will simply extend the default array.

    All built-in functions defined here must be implemented by the target.builtInGenerator.

    Defined in

    kipper/core/src/compiler/compile-config.ts:37


    extendBuiltInVariables

    • Optional extendBuiltInVariables: BuiltInVariable[]

    Extends the builtInVariables with the specified items. If builtInVariables is undefined, then it will simply extend the default array.

    All built-in variables defined here must be implemented by the target.builtInGenerator.

    Since

    0.10.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:55


    fileName

    • Optional fileName: string

    The filename that should be used to represent the program.

    Since

    0.2.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:61


    optimisationOptions

    • Optional optimisationOptions: OptimisationOptions

    Options for the KipperOptimiser.

    Since

    0.8.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:67


    recover

    • Optional recover: boolean

    If set to true, the compiler will attempt to recover from compilation errors if they are encountered. This will mean the compiler can process multiple errors, without aborting on the first one encountered. This though can result in invalid errors being generated, as a result of other errors. (Error recovery does not include syntax error recovery and if a syntax error is encountered, the compiler aborts immediately.)

    Generally though, it is good to use compiler error recovery, which is why it is enabled per default and should rarely be disabled.

    If set to false, the compiler will stop processing on the first error that is encountered. Unlike abortOnFirstError it will not throw the error, but instead simple store it in errors and errors.

    Since

    0.10.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:90


    target

    • target: KipperCompileTarget

    The translation languages for the compilation.

    Since

    0.5.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:21


    warnings

    • Optional warnings: boolean

    If set to true, the compiler will check for warnings and add them to warnings and warnings.

    Since

    0.9.0

    Defined in

    kipper/core/src/compiler/compile-config.ts:74

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