Git Product home page Git Product logo

py2go's Introduction

py2go

转换python代码结构到golang的小工具。只是简单的结构代码转换,方便再手动调整。

完成的内容

  • 基本语法树的分析,重建。
  • 转换成golang,稍微改下可以支持转换到其他语言
  • class,func,if,else,for的基本转换
  • 一些关键字的批量替换

未完成的内容

  • 变量的初始化
  • 类型识别
  • 特殊语法的转换(例如:if a in [])

使用方法

  • 转换单个python文件(示例:py2go.exe res/test.py)
  • 转换所有当前目录和res目录的python文件(直接执行exe)

py2go's People

Contributors

magicsea avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.