Skip to content
A toy programming language for learning how to make programming languages
TypeScript JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
.gitignore
README.md
jest.config.js
package-lock.json
package.json
tsconfig.json

README.md

Smol

A toy language for learning how to make programming languages.

let x = 1;
let y = 7;

let do_math = |x, y| {
    let add = |a, b| { a + b };

    print("x + y:");
    print(add(x, y));

    if y > 3 {
        print("y is greater than 3");
    }
};

do_math(x, y);
You can’t perform that action at this time.