c0 编译器, 具体文法请参见 here
- JDK15 (need to enable preview feature)
推荐使用sdkman来管理、下载相关的SDK
git clone https://github.com/lizhijian-cn/c0-java.git
cd c0-java
./gradlew build
java --enable-preview -jar build/libs/c0-java.jar example/fn-main.c0 -o example/fn-main.o0
./navm example/fn-main.o0
# the sum from 1 to 50 equals to:
# 5050
其中虚拟机navm是助教提供的
- control flow check
- support DaclNode
- location
- error handler
57/57 passed