Mugo is a single-pass compiler for a tiny subset of the Go programming language -- just enough to compile itself. It outputs (very naive) x86-64 assembly, and supports just enough of the language to implement a Mugo compiler: int
and string
types, slices, functions, locals, globals, and basic expressions and statements.
-
Notifications
You must be signed in to change notification settings - Fork 6
Mugo, a toy compiler for a subset of Go that can compile itself
License
benhoyt/mugo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Mugo, a toy compiler for a subset of Go that can compile itself