Skip to content
mini C compiler / interpreter for VM in 512 lines C program
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
README.md
c.bat
c.sh
ci0
ci0.c
test0-hello.c
test1-calc.c
test2-while.c
test3-function.c
test4-recursive.c

README.md

ci0

C compiler in 512 lines.
512行のCコンパイラ

I editted "Mini C Interpreter" by Minoru Hatada for Mac.
Minoru Hatada 氏の「ミニCインタプリタ」をMacで動くように修正

http://home.a00.itscom.net/hatada/lp/ci/minicinterpreter00.html
http://home.a00.itscom.net/hatada/_toc/index.html

For learners about the compiler!
コンパイラの学習にオススメです!

build

for Mac
gcc cl0.c -o cl0

for Windows
cl cl0.c

usage

ci0 test0-hello.c
ci0 -code test1-calc.c
ci0 -trace test2-while.c
ci0 test3-function.c
ci0 test4-recursive.c 20

You can’t perform that action at this time.