I take the course from https://www.dabeaz.com/compiler.html.
The course was taught by David Beazley using Python.
I think it is fun to rewrite the code in Golang. (study golang)
If you are interested in this project, You may want to take part in David's course.
The course itself is also continuously evolving.
npm install # for wasm
# make sure you have clang
go run cmd/llvm/llvm_main.go tests/Programs/23_mandel.wb
go run cmd/wasm/wasm_main.go tests/Programs/23_mandel.wb
go run cmd/wvm/wvm_main.go tests/Programs/23_mandel.wb
go run cmd/interpreter/interpreter_main.go tests/Programs/23_mandel.wb
go test -v wabbit-go/tests
- refactor code. Such like the implement of context. Do golang have good way to do it?
- error handle
- string
- nest function
- interpreter and wvm is so slowly. Optimize it.
- There should have many todos