Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benhoyt/mugo

Mugo, a toy compiler for a subset of Go that can compile itself
https://github.com/benhoyt/mugo

Last synced: 29 days ago
JSON representation

Mugo, a toy compiler for a subset of Go that can compile itself

Awesome Lists containing this project

README

        

# Mugo

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.

[**Read the full article.**](https://benhoyt.com/writings/mugo/)