项目
关于
面向 CPython 虚拟机的编程语言。
编程语言与运行时实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文dg
A (technically) simple language that compiles to CPython bytecode. DISCLAIMER: this project is just for fun, please don't use it for anything serious, thanks.
Requirements
CPython 3.4 or any other Python VM with equivalent bytecode (like PyPy3).
Installation
pip3 install git+https://github.com/pyos/dg
Usage
python -m dg
python -m dg file.dg argument1 argument2
python -m dg <<< 'print "Hello, World!"'
echo 'print "Hello, World!"' > dg_module.dg; python -c 'import dg, dg_module'
More complex stuff
Text editor support
- Sublime Text and TextMate bundle
- GEdit/GtkSourceView syntax definition
- vim plugin (courtesy of Michele Lacchia)
- Atom syntax (by Ale)
To-do
- String interpolation:
i"{expression #flags}"=="{:flags}".format expression - Tools for easy AST manipulation.
- Compiler extension API.
- Some of the more obscure Python features: exception causes, function annotations.
探索相关项目
加载中…