• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • 0.9.2 /
      • Comments
    Kipper Docs
    • next
    • latest
    • 0.11.0
    • 0.10.4
    • 0.9.2
    • Overview

    • Quickstart

    • Goals for Kipper

    • Supported platforms

    • Usage Examples

    • Kipper Compiler

    • Variables

    • Datatypes

    • Expressions

    • Statements

    • If-statement

    • While-loop

    • Do-While-loop

    • For-Loop

    • Functions

    • Comments

    • Built-in Functions

      • 0.9.2 /
      • Comments
    • 0.9.2 /
    • Comments

    Edit page

    Comments

    A comment is a special string, which is ignored by the Parser and has no effect on the compilation of a Program. Comments are best suited for describing functionality and informing the code reader of important info.

    Syntax

    /* CONTENT */

    Examples

    // ✓ Simple comment
    /* Greet the user */
    call print("Hello user!");
    
    // ✓ Function comment
    /**
     * Calculates the sum of all numbers in the list 'val'.
     * @param val The list of numbers.
     * @returns The sum of all numbers
     */
    def sum(val: list<num>) -> num {
      var sum: num = 0;
      for (var i: num = 0; i < call len(val); i++) {
        sum += i;
      }
      return sum;
    }
  • Developed at:

    • Releases
    • GitHub
    • Security
    • Issue Tracker
    • License
  • Copyright © 2021-2025 Luna Klatzer, 2024-2025 Lorenz Holzbauer & Fabian Baitura.
    Kipper is licensed under the GPL-3.0-or-later license.