Gothon

用 Go 编写的 Python 解释器。「A Python interpreter written in Go」

  • 所有者: lorenzleutgeb/gothon
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Build Status Go Report Card GoDoc

Gothon

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 import statements.
  • understand classes.
  • deal with exception handling.
  • ...

like a production-grade runtime. Contributions to the project are welcome.

The Go Gopher was created by Renée French. The Python Logo is a registered trademark of the Python Software Foundation

主要指標

概覽
名稱與所有者lorenzleutgeb/gothon
主編程語言Go
編程語言Go (語言數: 4)
平台
許可證Apache License 2.0
所有者活动
創建於2013-03-22 22:21:41
推送於2019-08-20 12:37:48
最后一次提交2019-08-20 14:37:47
發布數0
用户参与
星數87
關注者數6
派生數7
提交數37
已啟用問題?
問題數2
打開的問題數1
拉請求數0
打開的拉請求數0
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?