• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • next /
      • Kipper API /
      • Module /
      • @kipper/target-ts /
      • index
    Kipper Docs
    • next
    • latest
    • 0.11.0
    • 0.10.4
    • 0.9.2
    • Overview

    • Quickstart

    • Goals for Kipper

    • Supported platforms

    • Usage Examples

      • Overview

    • 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

      • next /
      • Kipper API /
      • Module /
      • @kipper/target-ts /
      • index
    • next /
    • Kipper API /
    • Module /
    • @kipper/target-ts /
    • index

    Edit page

    Class: KipperTypeScriptTarget

    The TypeScript translation target for the Kipper language.

    Since

    0.10.0

    Hierarchy

    • unknown

      ↳ KipperTypeScriptTarget

    Table of contents

    Constructors

    • constructor

    Properties

    • internalObjectIdentifier
    • reservedIdentifiers

    Methods

    • getBuiltInIdentifier
    • getRuntimeType
    • getTypeScriptType

    Constructors

    constructor

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

    Parameters

    Name Type
    semanticAnalyser TypeScriptTargetSemanticAnalyser
    codeGenerator TypeScriptTargetCodeGenerator
    builtInGenerator TypeScriptTargetBuiltInGenerator

    Overrides

    KipperCompileTarget.constructor

    Defined in

    kipper/target-ts/src/target.ts:29

    Properties

    internalObjectIdentifier

    ▪ Static Readonly internalObjectIdentifier: any = TargetJS.internalObjectIdentifier

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

    Since

    0.10.0

    Defined in

    kipper/target-ts/src/target.ts:21


    reservedIdentifiers

    ▪ Static Readonly reservedIdentifiers: any = TargetJS.reservedIdentifiers

    All reserved identifiers in JavaScript/TypeScript that may not be overwritten.

    Since

    0.10.0

    Defined in

    kipper/target-ts/src/target.ts:27

    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 TypeScript form.

    Returns

    string

    Defined in

    kipper/target-ts/src/target.ts:45


    getRuntimeType

    ▸ Static getRuntimeType(type): string

    Fetches the runtime type for a ProcessedType.

    Since

    0.13.0

    Parameters

    Name Type Description
    type ProcessedType The type to get the runtime type for.

    Returns

    string

    Defined in

    kipper/target-ts/src/target.ts:54


    getTypeScriptType

    ▸ Static getTypeScriptType(kipperType): string

    Fetches the typescript equivalent for a KipperBuiltInTypeLiteral.

    Since

    0.8.0

    Parameters

    Name Type Description
    kipperType ProcessedType The type to get the equivalent for.

    Returns

    string

    Defined in

    kipper/target-ts/src/target.ts:63

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