summaryrefslogtreecommitdiff
path: root/py/parse.c
AgeCommit message (Collapse)Author
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.
2014-01-15Implement eval.Damien George
2014-01-15Convert parse errors to exceptions.Damien George
Parser no longer prints an error, but instead returns an exception ID and message.
2014-01-12Parse long Python ints properly.Paul Sokolovsky
Long int is something which doesn't fit into SMALL_INT partion of machine_int_t. But it's also something which doesn't fit into machine_int_t in the first place.
2014-01-12py: Improve memory management for parser; add lexer error for bad line cont.Damien George
2013-12-30Put unicode functions in unicode.c, and tidy their names.Damien George
2013-12-29Change memory allocation API to require size for free and realloc.Damien
2013-12-29Parse upper-case hex numbers correctly.Damien
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-11-02Add basic complex number support.Damien
2013-10-19Make grammar rules const so the go in .text section.Damien
2013-10-18Implement REPL.Damien
2013-10-12Tidy up SMALL_INT optimisations and CPython compatibility.Damien
2013-10-12Separate out mpy core and unix version.Damien
2013-10-09Improve indent/dedent error checking and reporting.Damien
2013-10-06Optimise typedargslist_name to not create a node if just an id.Damien
2013-10-06Make range of small int 24 bits.Damien
2013-10-05Add support for inline thumb assembly.Damien
2013-10-04Initial commit.Damien