Skip to content

PHANTOM-2004/tiny-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Compiler

Dev Toolchain

golang: 1.24.2 with cgo

Run

获取镜像

# 导入镜像
./run.sh import

# 或者构建镜像
./run.sh build

运行

  • Parser
./run.sh parser scopes.rs # scopes.rs位于example目录中(挂载)
  • Symbol Table
./run.sh symtable scopes.rs # scopes.rs位于example目录中(挂载)
  • Visualize Symbol Table with Dot Lanugage
./run.sh dot scopes.rs # scopes.rs位于example目录中(挂载), 在output中查看产物
  • Generate LLVM IR
./run.sh ir func.rs # func.rs位于example目录中(挂载)

About

compiler written in go for rust like language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •