Gothon
A Python interpreter written in Go
Install / Use
/learn @lorenzleutgeb/GothonREADME
Gothon <img src="gothon.png" alt="Gothon Logo" align="right" />
A Python interpreter written in Go written as part of the course Abstract Machines (german) at Vienna University of Technology.
:rotating_light: ATTENTION: This codebase is not maintained. It only covers a small subset of all Python features. It should not be used in production. It exists for educational purposes.
Scope
Gothon is only an interpreter, not a compiler. It relies on CPython (the de facto standard Python runtime) to compile human readable source code into machine readable bytecode.
Gothon is intended to interpret bytecode (which is generated using CPython ahead of time) and actually run the program. It is limited in this aspect on purpose. The goal of the project (at least for now) is not to build a compiler, but a virtual machine that leverages the compiler built into CPython.
Current Status
Gothon is able to interpret the most basic instructions generated by CPython. This means arithmetic and function calls.
Future
It would be cool if Gothon would at some point be able to
- resolve
importstatements. - understand classes.
- deal with exception handling.
- ...
like a production-grade runtime. Contributions to the project are welcome.
<sub>The Go Gopher was created by Renée French. The Python Logo is a registered trademark of the Python Software Foundation</sub>
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
