<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/parse.c, branch v1.0-rc1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0-rc1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0-rc1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-04-10T14:27:31+00:00</updated>
<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: Clean up includes.</title>
<updated>2014-03-17T09:43:40+00:00</updated>
<author>
<name>xbe</name>
<email>xbe@machine</email>
</author>
<published>2014-03-16T07:14:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=efe34223945a5d27a7ae9445d0793d6330cd2411'/>
<id>urn:sha1:efe34223945a5d27a7ae9445d0793d6330cd2411</id>
<content type='text'>
Remove unnecessary includes. Add includes that improve portability.
</content>
</entry>
<entry>
<title>py: Implement bit-shift and not operations for mpz.</title>
<updated>2014-03-01T19:50:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-01T19:50:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=06201ff3d6d9485b2657fc9ac4aa8a306884322f'/>
<id>urn:sha1:06201ff3d6d9485b2657fc9ac4aa8a306884322f</id>
<content type='text'>
Implement not, shl and shr in mpz library.  Add function to create mpzs
on the stack, used for memory efficiency when rhs is a small int.
Factor out code to parse base-prefix of number into a dedicated function.
</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>Replace global "static" -&gt; "STATIC", to allow "analysis builds". Part 2.</title>
<updated>2014-02-12T16:31:30+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-02-12T16:31:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=520e2f58a559c356ea540a5da4e9a585649aecc6'/>
<id>urn:sha1:520e2f58a559c356ea540a5da4e9a585649aecc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Fix bug with LOAD_METHOD; fix int-&gt;machine_int_t for small int.</title>
<updated>2014-01-29T18:58:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-01-29T18:58:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=08d075592f3fa958ac3f24e176bee5ab56e78f49'/>
<id>urn:sha1:08d075592f3fa958ac3f24e176bee5ab56e78f49</id>
<content type='text'>
LOAD_METHOD bug was: emitbc did not correctly calculate the amount of
stack usage for a LOAD_METHOD operation.

small int bug was: int was being used to pass small ints, when it should
have been machine_int_t.
</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>
</feed>
