• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • latest /
      • 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

      • Type Consistency

      • Runtime Type Casting

      • Strict Compiler Inspection

      • Integrated Runtime Library

    • Variables

      • Overview

      • String Type

      • Number Type

      • Boolean Type

      • Void Type

      • Null Type

      • Undefined Type

      • Array Type

      • Overview

      • Tangled Expression

      • Arithmetic Expression

      • Assignment Expression

      • Conditional Expressions

      • Logical Expressions

      • Bitwise Expression

      • Relational Expressions

      • Convert Or Cast Expression

      • F-String Expression

      • Member Access Expression

      • Function Call Expression

      • Lambda Expression

      • Matches Expression

      • Overview

      • Expression Statement

      • If Statement

      • While Loop

      • Do-While Loop

      • For Loop

      • Compound Statement

      • Jump Statement

    • Functions

    • Interfaces

    • Classes

    • Comments

    • Built-in Functions

      • Overview

      • Compiler Setup

        • Overview

          • index

          • compiler

          • errors

          • logger

          • utils

          • config

          • index

          • index

        • Overview

        • new

        • run

        • compile

        • help

        • version

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

    • internalInterfacePrefix
    • internalObjectIdentifier
    • reservedIdentifiers

    Methods

    • getBuiltInIdentifier
    • getRuntimeType

    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:97

    Properties

    internalInterfacePrefix

    ▪ Static Readonly internalInterfacePrefix: "__intf"

    The internal prefix for interfaces in the JavaScript target.

    Since

    0.12.0

    Defined in

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


    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:34

    Methods

    getBuiltInIdentifier

    ▸ Static getBuiltInIdentifier(signature): string

    Fetches the reserved identifier for the translated code.

    This will also ensure that BuiltInVariable 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:113


    getRuntimeType

    ▸ Static getRuntimeType(type): string

    Gets the builtin type for a Kipper type.

    Since

    0.12.0

    Parameters

    Name Type
    type ProcessedType

    Returns

    string

    Defined in

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

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