All Projects → nightblade9 → dragon

nightblade9 / dragon

Licence: other
Dragon is a universal Python translater.

Programming Languages

python
139335 projects - #7 most used programming language
GAP
223 projects
haxe
709 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to dragon

Pseudo Python
a restricted python to javascript / c# / go / ruby compiler
Stars: ✭ 106 (+307.69%)
Mutual labels:  prototype, transpiler
beemos
BEE MOnitoring System: create an infrastructure for monitoring beehives
Stars: ✭ 16 (-38.46%)
Mutual labels:  prototype
Wireframe
minimal wireframing css-framework 🎈
Stars: ✭ 146 (+461.54%)
Mutual labels:  prototype
Quiz App
A repository reflecting the progress made on the "How to Build iOS Apps with Swift, TDD & Clean Architecture" YouTube series, by Caio & Mike.
Stars: ✭ 230 (+784.62%)
Mutual labels:  prototype
Iso
Build pages and prototypes with Lab UI components. No configuration or build setup required.
Stars: ✭ 158 (+507.69%)
Mutual labels:  prototype
Chisel.prototype
Work in progress prototype for the Chisel Level Editor, for Unity
Stars: ✭ 247 (+850%)
Mutual labels:  prototype
Involt
Inject hardware interactions directly into HTML layout.
Stars: ✭ 128 (+392.31%)
Mutual labels:  prototype
sbt-babel
An SBT plugin to perform Babel compilation.
Stars: ✭ 12 (-53.85%)
Mutual labels:  transpiler
elephize
Typescript to PHP translation tool
Stars: ✭ 27 (+3.85%)
Mutual labels:  transpiler
Spring Dubbo Service
微服务 spring dubbo项目:dubbo rpc;druid数据源连接池;mybatis配置集成,多数据源;jmx监控MBean;定时任务;aop;ftp;测试;Metrics监控;参数验证;跨域处理;shiro权限控制;consul服务注册,发现;redis分布式锁;SPI服务机制;cat监控;netty服务代理;websocket;disconf;mongodb集成;rest;docker;fescar
Stars: ✭ 224 (+761.54%)
Mutual labels:  prototype
Rplibs
Refs.cn 原型设计元件库,基于Axure RP 10/9/8,支持 Android、Apple、Windows、微信,移动、桌面平台的应用和网站原型设计。五年历程 2.6k+ star,感谢大家使用。
Stars: ✭ 2,622 (+9984.62%)
Mutual labels:  prototype
Fermionjs
Visual Prototyping Tool for React Applications
Stars: ✭ 197 (+657.69%)
Mutual labels:  prototype
sherlock.py
Sherlock is transpiler that translate python to shell script language.
Stars: ✭ 65 (+150%)
Mutual labels:  transpiler
Pushvendor
Ruby on Rails POS (Point of Sale)
Stars: ✭ 147 (+465.38%)
Mutual labels:  prototype
oh-my-design-patterns
🎨 Record the articles and code I wrote while learning design patterns
Stars: ✭ 33 (+26.92%)
Mutual labels:  prototype
Designpatterns
🔑Elements of Reusable Object-Oriented Software🔓is a software engineering book describing software design patterns. The book's authors are Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides with a foreword by Grady Booch.
Stars: ✭ 134 (+415.38%)
Mutual labels:  prototype
Javascript Interview Questions
500+ JavaScript Interview Questions
Stars: ✭ 208 (+700%)
Mutual labels:  prototype
Pokegold Spaceworld
Disassembly of the Pokémon Gold and Silver 1997 Space World demo
Stars: ✭ 246 (+846.15%)
Mutual labels:  prototype
contact-tracer
A prototype contact tracer app for COVID-19 pandemic response
Stars: ✭ 50 (+92.31%)
Mutual labels:  prototype
dotlin
Kotlin to Dart compiler
Stars: ✭ 212 (+715.38%)
Mutual labels:  transpiler

Dragon

Build status

Dragon transpiles Python 3 code to Haxe, which can then be transpiled and compiled to various platforms and languages (C++, Javascript, Java, C#, Ruby, Python, Lua, etc. for browser/web, desktop, Android, iOS, etc.)

Usage

  • Create some Python code
  • Create a file like compiler.py
  • Add the import from dragon.transpiler.python_to_haxe_transpiler import PythonToHaxeTranspiler
  • Invoke PythonToHaxeTranspiler(source_path, files).transpile() passing in the directory root of the source files (important for package names!) and a list of files to transpile (eg. os.glob.glob("**/*.py"))).
  • Check the outputted Haxe code. Invoke the Haxe compiler as usual.

For constructs that don't exist in Python (eg. override, @:...), add them to your Python code and prefix them with @haxe:.

Caveats

  • When importing Haxe code, use the Haxe-style from package.subpackage import ClassName
  • Make sure all Python files have a final empty line

Limitations

Dragon was created in order to be able to write HaxeFlixel games in Python. Python supports complex features (eg. generator functions, decorators) and ships with a vast collection of functionality (eg. itertools, decimal, etc.); it would be impossible to keep Dragon up to date.

Instead, Dragon supports just enough functionality to build games. If you find your favourite feature or module missing, feel free to open an issue or send us a PR.

Roadmap

Currently, Dragon is in a very early stage of development. We're using Lark to generate the parse tree, and then generate the resulting Haxe code.

Our roadmap:

  • Transpile the default HaxeFlixel "hello world" template (v0.1)
  • Transpile a more complicated HaxeFlixel template
  • Transpile an actual HaxeFlixel game

Once we achieve these goals, we plan to release the v1.0.0 version of Dragon.

You may also be interested in Mars, our companion project which handles generating, compiling, and running Python-based HaxeFlixel projects (via Dragon).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].