<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/parse.h, branch v1.0.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-05-03T22:27:38+00:00</updated>
<entry>
<title>Add license header to (almost) all files.</title>
<updated>2014-05-03T22:27:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-03T22:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=04b9147e150d2d6fa3750f312fe328b6a71c1b28'/>
<id>urn:sha1:04b9147e150d2d6fa3750f312fe328b6a71c1b28</id>
<content type='text'>
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/.
</content>
</entry>
<entry>
<title>py: Check explicitly for memory allocation failure in parser.</title>
<updated>2014-04-10T14:27:31+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-10T14:27:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=58ba4c3b4c12e9bf6b8731fd26e0c9cac527122f'/>
<id>urn:sha1:58ba4c3b4c12e9bf6b8731fd26e0c9cac527122f</id>
<content type='text'>
Previously, a failed malloc/realloc would throw an exception, which was
not caught.  I think it's better to keep the parser free from NLR
(exception throwing), hence this patch.
</content>
</entry>
<entry>
<title>py: Put number parsing code together in parsenum.c.</title>
<updated>2014-02-22T18:12:43+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-02-22T18:12:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=20773971186151b53426bd607908546598036a16'/>
<id>urn:sha1:20773971186151b53426bd607908546598036a16</id>
<content type='text'>
</content>
</entry>
<entry>
<title>parse: Refactor parse node encoding to support full range of small ints.</title>
<updated>2014-02-22T14:39:45+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-02-22T14:39:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=56e5ef203b01ac8dfb1cb46143f6f7c53237b79d'/>
<id>urn:sha1:56e5ef203b01ac8dfb1cb46143f6f7c53237b79d</id>
<content type='text'>
Based on suggestion by @dpgeorge at
https://github.com/micropython/micropython/pull/313
</content>
</entry>
<entry>
<title>parse: Note that fact that parser's small ints are different than VM small int.</title>
<updated>2014-02-21T01:27:09+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-02-21T00:04:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bbf0e2fe120f095ce09fcb7eb631c9fd04bd9760'/>
<id>urn:sha1:bbf0e2fe120f095ce09fcb7eb631c9fd04bd9760</id>
<content type='text'>
Specifically, VM's small ints are 31 bit, while parser's only 28. There's already
MP_OBJ_FITS_SMALL_INT(), so, for clarity, rename MP_FIT_SMALL_INT() to
MP_PARSE_FITS_SMALL_INT().
</content>
</entry>
<entry>
<title>Implement proper exception type hierarchy.</title>
<updated>2014-02-15T16:10:44+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-02-15T16:10:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c5966128c7c8a768f6726f299d85d5daef6bed48'/>
<id>urn:sha1:c5966128c7c8a768f6726f299d85d5daef6bed48</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Implement mp_parse_node_free; print properly repr(string).</title>
<updated>2014-01-25T13:51:19+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-01-25T13:51:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b829b5caecd1ba4fbc30e03978776d2c868dd67b'/>
<id>urn:sha1:b829b5caecd1ba4fbc30e03978776d2c868dd67b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add parse_node_free_struct() and use it to free parse tree after compilation.</title>
<updated>2014-01-25T00:11:59+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-01-24T22:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=aee2ba70de774f954a793efb73e72faaf4e6524d'/>
<id>urn:sha1:aee2ba70de774f954a793efb73e72faaf4e6524d</id>
<content type='text'>
TODO: Check lexer/parse/compile error path for leaks too.
</content>
</entry>
<entry>
<title>py: Add module/function/class name to exceptions.</title>
<updated>2014-01-19T11:48:48+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-01-19T11:48:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cbd2f7482c8bf457cc17da763859dbba6e03e2a2'/>
<id>urn:sha1:cbd2f7482c8bf457cc17da763859dbba6e03e2a2</id>
<content type='text'>
Exceptions know source file, line and block name.

Also tidy up some debug printing functions and provide a global
flag to enable/disable them.
</content>
</entry>
<entry>
<title>Add source file name and line number to error messages.</title>
<updated>2014-01-18T23:24:36+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-01-18T23:24:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=08335004cfe95048ee06134a3e49b9fb75639139'/>
<id>urn:sha1:08335004cfe95048ee06134a3e49b9fb75639139</id>
<content type='text'>
Byte code has a map from byte-code offset to source-code line number,
used to give better error messages.
</content>
</entry>
</feed>
