This describes the (currently very rudimentary) code for the tiny
(from
the compiler-construction book of Louden) language in Go. Currently it’s
more like playing around with Go and differerent flavors of visitors,
nothing really finished.
There is also a version in ocaml
but not here, it’s locally
under $(HOME)/teaching/compilers/tiny
.
- ./org: organizational remarks, todo’s, bug lists
The code should work independent from the go version (not too ancient
though, one would presume.) Currently I assume it’s part of a go
workspace, it’s not a workspace in itself (i.e., there are no src
etc
subdirectories). It’s difficult…
GOROOT= GOPATH=/home/msteffen/cor/tiny
If one had already a go workspace (say under $(HOME)/go
), it seem kind of
standard to clone the repos under
$(HOME)/go/src/github.com/MartinSteffen/
The environment the looked like
GOROOT= GOPATH=$(HOME)/go
and the import of absynt
would look like
import ("github.com/MartinSteffen/tiny/absynt"
go get github.com/MartinSteffen/tiny/ast
Sub-directories