Skip to content

MariaChrysafis/TinyCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

27cd4db · Sep 29, 2024

History

18 Commits
Sep 28, 2024
Sep 29, 2024
Sep 28, 2024
Sep 28, 2024
Sep 28, 2024
Sep 29, 2024
Sep 29, 2024
Sep 28, 2024
Sep 29, 2024
Sep 28, 2024
Sep 28, 2024

Repository files navigation

Tiny Compiler

A mini programming language

let $y = 10
let $z = 5
let $x = $y + 10 + $z
let $x = $y + 5
print $x
if $x > 10 {
    let $x = $y
    let $w = 54
    print $w
    if $w < 30 {
        let $u = 10 * 10
        print $u
    }
}

Currently supports

  • if statements (>, <)
  • assignments (e.g. $x = 10)
  • expressions (+, -, /, *)
  • print statements (e.g. print $x)

Only works for integers

About

Compiler for Tiny Custom Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published