Skip to content
/ Limc Public

[MiniCC, C Compiler] Limc is a minimal compiler. (Compiler course final project.)

License

Notifications You must be signed in to change notification settings

Yangjiaxi/Limc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIMC

Limc Is a Minimal Compiler.

HaHa

郑重鸣谢

实验环境

  • 操作系统:OSX
  • 开发语言:C++ 17
  • 集成环境:clion & vscode

Part-1 词法分析器

$ make
$ cat ./test/copy | ./compiler

Part-2 语法分析器

$ make all
$ make fibo
$ make ss
$ make cmt
$ make copy

Part-3 语义分析

使用CLion打开工程

$ make fibo
$ make ss
$ make cmt
$ make copy
$ make error

Part-4 中间代码生成

使用CLion打开工程

$ make ss
$ make fact
$ make qs
$ make arr
$ make loop
$ make fp

Part-5 目标代码生成

使用CLion打开工程

$ make ss
$ make fact
$ make fib
$ make arr
$ make prime
$ make loop
$ make fp

About

[MiniCC, C Compiler] Limc is a minimal compiler. (Compiler course final project.)

Topics

Resources

License

Stars

Watchers

Forks