Skip to content

MoyusiteruIori/mycmmi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mycmmi: My C-- interpreter

一个自举的 C 子集解释器,基于 c4

备战面试,简单复习编译原理过程中的产物

使用:

clang -o mycmmi ./mycmmi.c
./mycmmi ./fib.c

./mycmmi ./mycmmi.c ./mycmmi.c ./fib.c

支持的操作

if, else, else if
while
+ - * / == != < > <= >= 
* & (取地址,解引用) [] (运算符)
函数调用
open, close, printf, read, malloc, memset, memcmp

About

My C-- interpreter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages