Skip to content

a little compiler for my own programming language called lucy

Notifications You must be signed in to change notification settings

chaoticva/lucy-compiler

Repository files navigation

Lucy

currently supported:

  • variable assignments
  • types: num, str, bool, char, auto, void
  • reassignments: num, bool
  • builtin functions such as exit() and print()
  • functions
  • if-else statements
  • syntax highlighting for jetbrains IDEs using this plugin
  • Error handling
var num errorCode = 7 + 3 * (10 / (12 / (3 + 1) - 1)) / (2 + 3) - 5 - 3 + (8); # 10
const var num successCode = 0;

errorCode = 1;

print("Hello, World!");

const var bool error = true;

def void foo() {
    if (error) {
        exit(errorCode);
    } else {
        exit(successCode);
    }
}

foo();

Error Handling

dIBnVlR.md.png
dIBB8In.md.png

Note:

this only compiles for x86_64 linux

About

a little compiler for my own programming language called lucy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published