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

    compiler.InternalFunction

    Interface representation of a InternalFunction, which is used to provide functionality for Kipper specific keywords, internal logic and other implementation related handling that must be present for a program to work.

    Since

    0.8.0

    Table of contents

    Properties

    • identifier
    • params
    • returnType

    Properties

    identifier

    • identifier: string

    The identifier of the internal function.

    The identifier may only contain default numbers and alphabet characters!

    Example

    "4" as num; // 'strAsNum' is the internal function used to perform this expression

    Since

    0.8.0

    Defined in

    kipper/core/src/compiler/runtime-built-ins.ts:100


    params

    • params: InternalFunctionArgument[]

    The args that are accepted inside this function. These are represented using InternalFunctionArgument.

    The index in the array also represents the argument position inside the function. Meaning the first item in the array maps to the first argument inside the function.

    Since

    0.8.0

    Defined in

    kipper/core/src/compiler/runtime-built-ins.ts:108


    returnType

    • returnType: KipperCompilableType

    The expected return of the function. If the return type is void, then the function will not return anything.

    Unlike BuiltInFunction, this can also be an array of types, which means that the function return may be a union.

    Since

    0.8.0

    Defined in

    kipper/core/src/compiler/runtime-built-ins.ts:117

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