aboutsummaryrefslogtreecommitdiff
path: root/py/lexer.h
AgeCommit message (Collapse)Author
2014-02-05Search paths properly on import and execute __init__.py if it exists.Damien George
2014-01-25Implement mp_parse_node_free; print properly repr(string).Damien George
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-15Convert parse errors to exceptions.Damien George
Parser no longer prints an error, but instead returns an exception ID and message.
2014-01-12py: Improve memory management for parser; add lexer error for bad line cont.Damien George
2014-01-08Move lexerstr to main py directory (everyone uses it).Damien George
2014-01-04Add ellipsis object.Damien George
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
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-10-20Integrate new lexer stream with stm framework.Damien
2013-10-20Abstract out back-end stream functionality from lexer.Damien
2013-10-09Improve indent/dedent error checking and reporting.Damien
2013-10-04Initial commit.Damien