Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/benhoyt/mugo
- Owner: benhoyt
- License: mit
- Created: 2021-04-02T10:36:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T13:35:18.000Z (over 3 years ago)
- Last Synced: 2024-06-18T23:36:03.054Z (5 months ago)
- Language: HTML
- Homepage: https://benhoyt.com/writings/mugo/
- Size: 141 KB
- Stars: 105
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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/)