• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • 0.11.0 /
      • Kipper API /
      • Module /
      • @kipper/target-js /
      • index
    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/target-js /
      • index
    • 0.11.0 /
    • Kipper API /
    • Module /
    • @kipper/target-js /
    • index

    Edit page

    Class: KipperJavaScriptTarget

    The JavaScript translation target for the Kipper language.

    Since

    0.10.0

    Hierarchy

    • unknown

      ↳ KipperJavaScriptTarget

    Table of contents

    Constructors

    • constructor

    Properties

    • internalObjectIdentifier
    • reservedIdentifiers

    Methods

    • getBuiltInIdentifier

    Constructors

    constructor

    • new KipperJavaScriptTarget(semanticAnalyser?, codeGenerator?, builtInGenerator?)

    Parameters

    Name Type
    semanticAnalyser JavaScriptTargetSemanticAnalyser
    codeGenerator JavaScriptTargetCodeGenerator
    builtInGenerator JavaScriptTargetBuiltInGenerator

    Overrides

    KipperCompileTarget.constructor

    Defined in

    kipper/target-js/src/target.ts:91

    Properties

    internalObjectIdentifier

    ▪ Static Readonly internalObjectIdentifier: "__kipper"

    The internal identifier for the global Kipper object storing runtime definitions.

    Since

    0.10.0

    Defined in

    kipper/target-js/src/target.ts:22


    reservedIdentifiers

    ▪ Static Readonly reservedIdentifiers: string[]

    All reserved identifiers in JavaScript (and TypeScript for good measure) that may not be overwritten.

    Since

    0.10.0

    Defined in

    kipper/target-js/src/target.ts:28

    Methods

    getBuiltInIdentifier

    ▸ Static getBuiltInIdentifier(signature): string

    Fetches the reserved identifier for the translated code.

    This will also ensure that BuiltInVariable.local local variables are not registered onto the global object. Those will simply stay as local variables with the same identifier.

    Since

    0.10.0

    Parameters

    Name Type Description
    signature any The identifier or signature object to translate to its JavaScript form.

    Returns

    string

    Defined in

    kipper/target-js/src/target.ts:107

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