Bdanilko / EdPy

A compiler for a subset of python2 to be used on the Microbric Edison robot
GNU General Public License v2.0
18 stars 12 forks source link

EdPy

Microbric Edison robot using a subset of Python 2

This software is a service used by the EdPy web application to take a subset of python 2 and create a wav file which can be downloaded to a Microbric Edison robot. As it is a service which the web-app uses it is strictly command line!

There are a couple of main python programs:

All of these programs must be run using python 2.7 or later, but NOT python 3.0 or later. So it is a python 2 program, which uses some python 2.7 additions but it isn't cleanly python 3.0. All new code was developed using future statements to use new print functionality and import functionality so should be easy to go to python 3. But some code was taken from EdWare (token assembler bits) so it will need more work.

All of the main python programs have a 'help' option -- e.g. python2 EdPy.py --help.

Examples

To get help:

python2 EdPy.py --help

To compile a program:

python2 EdPy.py en_lang.json SOURCE.py

To just check a program. This doesn't generate a wav file.

python2 EdPy.py -c en_lang.json SOURCE.py

Turn on debugging output and get an assembler listing

python2 EdPy.py -d 2 -a test.lst en_lang.json SOURCE.py

Enjoy!

Brian