Skip to content

Minimalist compiler course, based on Essential of Compilation

Notifications You must be signed in to change notification settings

dannypsnl/minic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minic

This is a minimalist compiler course, based on Essential of Compilation, compiles a limited scheme variant to aarch64 assembly.

Installation

Before start developing, you will need to run below code to install dependencies

opam install --deps-only --with-test .

Learning

To use this project to learn how to make a compiler, read the followings by order

  1. Arithmetic compilation
  2. Boolean and Control flow

Usage

Nows, you can run build, test

dune build
dune runtest

, and of course, check the example by the command below

dune exec minic -- ./example/hello.mml

main branch is not stable, there might have some example cannot work, if you're a learner then goes to Release and pick a branch first. Each release is a stable version, written examples should be runnable

About

Minimalist compiler course, based on Essential of Compilation

Resources

Stars

Watchers

Forks

Packages

No packages published