Skip to content

omar8511/lisp-compiler

Repository files navigation

Lisp to ARM64 Compiler

A simple compiler that translates Lisp-like expressions into ARM64 assembly code.

What it does

Takes basic Lisp syntax and spits out ARM64 assembly. Currently handles:

  • Basic arithmetic ((+ 10 5))
  • Variable definitions ((define x 42))
  • Lambda functions ((lambda (x) (* x x)))
  • Conditionals ((if (> 8 3) 42 0))
  • Recursive functions (fibonacci example included)

Building

make

Running

./compiler

This generates several .s assembly files demonstrating different language features.

Clean up

make clean

That's it. Pretty straightforward for a compiler project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published