Skip to content

zhouziqunzzq/Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler

Introduction

A naive C-like compiler implemented in C++.
The compiler is just a toy for the final project of the course, Principle of Compiler. It's not intended to be used in production scenarios.

Build & Run

To build the project, there're two options:

  • Import Compiler.cbp to Code::Blocks and build in it
  • Using cmake(>=3.5) to build in debug mode like
    mkdir bin
    cd bin
    cmake .. -DDEBUG=on
    make
    
    or build in release mode like
    mkdir bin
    cd bin
    cmake .. -DRELEASE=on
    make
    
    Then you can run the executable file like
    ./naive_c_compiler <input_file>
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published