summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy/main.c
Commit message (Collapse)AuthorAge
* py: Make compiler return a proper exception on SyntaxError.Damien George2014-10-05
|
* Put call to qstr_init and mp_init_emergency_exc_buf in mp_init.Damien George2014-08-04
| | | | | | | qstr_init is always called exactly before mp_init, so makes sense to just have mp_init call it. Similarly with mp_init_emergency_exception_buf. Doing this makes the ports simpler and less error prone (ie they can no longer forget to call these).
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
* unix-cpy: Put mpconfig.h before all other headers.Damien George2014-05-02
|
* Add a check for NULL nlr_top in nlr_jump.Damien George2014-04-08
| | | | | | If no nlr_buf has been pushed, and an nlr_jump is called, then control is transferred to nlr_jump_fail (which should bail out with a fatal error).
* unix-cpy: Pass emit opt to mp_compile.Damien George2014-04-06
|
* Rename rt_* to mp_*.Damien George2014-03-30
| | | | | | | Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
* py: Factor out code from runtime.c to emitglue.c.Damien George2014-03-27
|
* Implement proper exception type hierarchy.Damien George2014-02-15
| | | | | | | | | | | | | | Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
* Add mp_import_stat to unix-cpy port.Damien George2014-02-06
|
* Second stage of qstr revamp: uPy str object can be qstr or not.Damien George2014-01-22
|
* py: Add module/function/class name to exceptions.Damien George2014-01-19
| | | | | | | Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
* Add source file name and line number to error messages.Damien George2014-01-18
| | | | | Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
* Convert parse errors to exceptions.Damien George2014-01-15
| | | | | Parser no longer prints an error, but instead returns an exception ID and message.
* Factor and simplify Makefile's and mpconfig.Damien George2014-01-07
|
* Change mp_compile so that it returns a function object for the module.Damien George2014-01-03
|
* Add unix-cpy, used to test Micro Python byte code against CPython.Damien2013-12-29