Go to file
2023-09-30 22:14:21 +02:00
src Merge branch 'main' of git.vanten-s.com:vanten-s/plonkus 2023-09-30 22:14:21 +02:00
.gitignore Removed test.plonkus 2023-09-17 16:25:33 +02:00
Cargo.toml Added an ast 2023-09-16 22:21:40 +02:00
README.md Fixed MarkDown Syntax 2023-09-27 09:25:35 +02:00

Plonkus

About

This is a small hobby language that I created because I was bored. It only supports my own architecture but I'm planning to extend it to x86 some day.

Features

Currently the language has the following

  • Expressions
  • Scopes
  • Functions
  • Variables

But more features like

  • If statements
  • Loops
  • Function calls in expressions
  • Comments

Are coming.

Syntax

Here is example of functions, built-ins and variables and Scopes

fn main {
    let a = 2;
    {
        let a = a + 1;
        out(a);
    }
    test(a);
    exit();
};

fn test output {
    let numberToOutput = output;
    out(numberToOutput);
};

This code prints 3 and then 2.