Skip to content

Getting started

Julius Paffrath edited this page Jun 23, 2026 · 24 revisions

Hello World

Every new language should introduce itself with a classic Hello, World!

print("Hello, World!")

In jask you don't need to specify a main function or importing stuff. Invoke the jask interpreter and try it yourself!

Interactive and file mode

The jask interpreter can be used in two ways: The interactive mode and the file mode.
The interactive mode allows you to enter jask code on the fly, just like the Python interactive mode. To start the interactive mode, just invoke the jask interpreter:

dotnet run

You can exit the interactive mode with the keyword exit or the build-in function exit(code:number). For interpreting jask files, pass the file to the interpreter:

dotnet run example.jask

Variables

The jask language has the attempt to be easy readable. So storing data goes like this:

store DATA in VARIABLE

easy, right?
Currently, jask supports these types of data:

  • strings, like "Hello!" or "This is a string"
  • numbers, like 42 or 3.1415
  • boolean values, can be TRUE or FALSE
  • lists

Aritmethic operations

Jask allows you to apply basic operators on values. See the following example:

100 + 200
100 - 200
100 * 200
100 / 200
"Hello " + "World!"

Functions

Functions are very straight forward in jask:

function doAwesomeStuff(param1: string, param2: number, param3: any)
    if type(param3) == "list"
        printLine(param1 + " " + param2 * listGet(param3, 3))
    endif
end

doAwesomeStuff("Hi!", 100, list(1, 2, 3))

Clone this wiki locally