ma-ric / dg

A programming language running on CPython VM.

Home Page:http://pyos.github.io/dg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dg

A (technically) simple language that compiles to CPython bytecode.

Requirements

CPython 3.4 or any other Python VM with equivalent bytecode (i.e. PyPy, although it does not implement Python 3.4 yet.)

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!'"

More complex stuff

http://pyos.github.io/dg/

Text editor support

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.

About

A programming language running on CPython VM.

http://pyos.github.io/dg/

License:MIT License


Languages

Language:Python 100.0%