Skip to content

withparadox2/SimpleCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

照抄javac 1.7,剔除难点繁点。

stage1

通过各种方式打印出hello world!

状态:

完成

stage2

支持基本语法,非常基本,连whilei++这类都不支持,不支持泛型。

状态:

施工中...

stage3

完善编译流程,支持更多语法特性。

stage4

支持泛型。

...

stageX

胡作非为。

run

  • install mingw and add /bin to system env
  • mkdir build
  • cd build and then cmake .. -G "MinGW Makefiles"
  • make or mingw32-make
  • cd ../bin and then SimpleCompiler.exe
  • cd ../TestHelloWorld and then java Computer

About

A toy compiler able to compile tiny java file to class file and can be executed by jvm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages