Skip to content

CminusC the simplified C compiler -- refined from the USTC compiler course.

Notifications You must be signed in to change notification settings

LuciferDarkStar/CminusC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler Cminus

It was programming homework for the principles and techniques of compilers course in USTC: the main task is to write a compiler for simplified C language, cminus.

I cleaned up the source code so the structure is now better for further development.

Compile

mkdir build
cd build
cmake ..
make

Run

./cminusc ../testcase/gcd.cminus
../testcase/gcd
(input 45 150)
(output 15)

For the original project, see CompilersHomework.

I do not own all these code: some are by my teammates and the teaching assistants. See the CompilersHomework repository for detail.

About

CminusC the simplified C compiler -- refined from the USTC compiler course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 64.3%
  • Yacc 17.9%
  • C 8.2%
  • Lex 7.1%
  • CMake 2.5%