mraccident/ccscript_legacy — pull request #4 by kiij (2014-05-21 22:26:02+00:00)
Title: Created Python interface and other small fixes

A really simple Python interface to the CCScript compiler. Also some other minor fixes included.

**Testing Done**
- `make runtests` passes
- Tested `setup.py install` on Windows 7, Debian, and Ubuntu
- Tested failure case with CoilSnake using the Python interface, exit code and error log is returned correctly:
```bash
vagrant@precise32:~/CoilSnake$ echo "goto(unknown_symbol)" > /tmp/proj/ccscript/a.ccs
vagrant@precise32:~/CoilSnake$ coilsnake-cli compile /tmp/proj /vagrant/EarthBound.sfc /tmp/a.sfc
Compiling CCScript
coilsnake.exceptions.common.exceptions.CoilSnakeError: CoilSnakeError: CCScript compilation failed with output:
error: /tmp/proj/ccscript/a.ccs, line 1: use of undefined identifier 'unknown_symbol'

1 error(s), 0 warning(s)

vagrant@precise32:~/CoilSnake$
```
- Tested success case with CoilSnake using the Python interface, exit code is returned correctly:
```bash
vagrant@precise32:~/CoilSnake$ echo '"test"' > /tmp/proj/ccscript/a.ccs
vagrant@precise32:~/CoilSnake$ coilsnake-cli compile /tmp/proj /vagrant/EarthBound.sfc /tmp/a.sfc
Compiling CCScript
Finished compiling CCScript
[...]
Compiled to /tmp/a.sfc in 44.08s
vagrant@precise32:~/CoilSnake$
```