aboutsummaryrefslogtreecommitdiff
path: root/py/bc.h
AgeCommit message (Collapse)Author
2014-02-15py: VM never throws an exception, instead returns a status and value.Damien George
Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
2014-02-01py: mp_execute_byte_code has 2 arg arrays, for more efficient default params.Damien George
2014-01-19py: Add module/function/class name to exceptions.Damien George
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
2014-01-18Add source file name and line number to error messages.Damien George
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-12-11py: work towards working closures.Damien
2013-12-10py: add skeletal import functionality.Damien
2013-11-05Improve allocation of stack for byte code.Damien
2013-11-05Make byte code jumps relative.Damien
2013-10-16Implement BC & runtime support for generator/yielding.Damien
2013-10-10Rename vm.h to bc.h.Damien
2013-10-05Further factorise PASS_1 out of specific emit code.Damien
2013-10-04Initial commit.Damien