Public
Watch
1
Fork
You've already forked zern
0
0

Latest commit

Toni
462571a 2026-12-01 16:54:32 +01:00 290 commits
2026-11-19 12:09:24 +01:00
2026-11-19 12:09:24 +01:00
2026-03-19 13:14:50 +01:00
2026-11-01 14:36:04 +01:00
2026-09-04 23:48:44 +02:00
2026-11-20 11:42:27 +01:00

zern

A very cool language

Features

Syntax

include "io.zr"

func main[] : i64
    answer := os.urandom_i64()->abs() % 100

    while true
        io.println("Guess a number: ")
        guess, err := io.read_line()->parse_i64()
        if err
            io.println("Not a number!")
            continue

        if guess == answer
            io.println("You win!")
            break
        else if guess < answer
            io.println("Too low!")
        else
            io.println("Too high!")

For more see examples/.

Quickstart

git clone https://git.ton1.dev/toni/zern
cd zern
# make sure /usr/local/bin is in your PATH or set custom PREFIX
./install.sh
zern