Skip to content

collectrobot/incremental-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this

This is me going through the Essentials of Compilation: The Incremental, Nano-Pass Approach, but using Rust instead of Scheme.

How to get started

This project currenly only runs on Windows. It'll probably change later.

Dependencies

  • Windows
    • Python3
    • Rust
    • if you get the following error error: linker 'link.exe' not found when building the runtime, install Visual Studio with the C++ build tools.
  • Linux
    • Not supported yet.

Installing

  • git clone https://github.com/tbre90/incremental-compiler

Running

  • Windows
    • Just building: py project.py
    • Start repl: py project.py --op run
      • type :help to get a list of available commands in the repl
    • Running tests
      • To run all tests: py project --op test
      • To run a specific test:
        cargo test -- <name of test>
        e.g.: cargo test -- x64_build_add_two_read
        
  • Linux
    • Not supported yet.