Skip to content

MartinSteffen/tiny

Repository files navigation

Intro

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.

Structure

  • ./org: organizational remarks, todo’s, bug lists

Prerequisits

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"

Remote import paths

go get github.com/MartinSteffen/tiny/ast 

Remarks

Rest

Sub-directories


  • ./org org-mode todo list and issues
  • ./ast abstract syntax tree data structure + some simple walk through
  • ./test to play around

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages