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

    compiler.KipperCompileResult

    The result of a KipperCompiler compilation.

    Since

    0.0.3

    Table of contents

    Constructors

    • constructor

    Properties

    • _programCtx
    • _result
    • _syntaxErrors

    Accessors

    • errors
    • programCtx
    • result
    • success
    • warnings

    Methods

    • write

    Constructors

    constructor

    • new KipperCompileResult(fileCtx?, result?, syntaxErrors?)

    Parameters

    Name Type
    fileCtx? KipperProgramContext
    result? TranslatedCodeLine[]
    syntaxErrors? KipperSyntaxError[]

    Defined in

    kipper/core/src/compiler/compile-result.ts:18

    Properties

    _programCtx

    • Private Readonly _programCtx: undefined | KipperProgramContext

    Defined in

    kipper/core/src/compiler/compile-result.ts:14


    _result

    • Private Readonly _result: undefined | TranslatedCodeLine[]

    Defined in

    kipper/core/src/compiler/compile-result.ts:15


    _syntaxErrors

    • Private Readonly _syntaxErrors: undefined | KipperSyntaxError[]

    Defined in

    kipper/core/src/compiler/compile-result.ts:16

    Accessors

    errors

    • get errors(): KipperError[]

    The list of errors that were raised during the compilation process.

    Errors are either syntax or compilation errors, which are raised when the compiler encounters a situation that it prevents it from continuing processing.

    Since

    0.10.0

    Returns

    KipperError[]

    Defined in

    kipper/core/src/compiler/compile-result.ts:70


    programCtx

    • get programCtx(): undefined | KipperProgramContext

    The program context for the compilation run, which stores the content of the program and meta-data.

    If undefined is returned that automatically indicates that the compilation failed due to a syntax error.

    Returns

    undefined | KipperProgramContext

    Defined in

    kipper/core/src/compiler/compile-result.ts:33


    result

    • get result(): undefined | TranslatedCodeLine[]

    The result of the compilation in TypeScript form (every line is represented as an entry in the array).

    Returns

    undefined | TranslatedCodeLine[]

    Defined in

    kipper/core/src/compiler/compile-result.ts:40


    success

    • get success(): boolean

    Returns true, if the compilation was successful without errors.

    Since

    0.10.0

    Returns

    boolean

    Defined in

    kipper/core/src/compiler/compile-result.ts:48


    warnings

    • get warnings(): KipperError[]

    The list of warnings that were raised during the compilation process.

    Warnings are non-fatal errors, which are raised when the compiler encounters a situation that it considers to be problematic, but which do not prevent the program from being compiled.

    Since

    0.9.0

    Returns

    KipperError[]

    Defined in

    kipper/core/src/compiler/compile-result.ts:59

    Methods

    write

    ▸ write(lineEnding?): string

    Creates a string from the compiled code that can be written to a file in a human-readable way.

    Parameters

    Name Type Default value Description
    lineEnding string "\n" The line ending for each line of the file. Default line ending is LF ('\n').

    Returns

    string

    Defined in

    kipper/core/src/compiler/compile-result.ts:80

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