- 01 Jan, 2015 1 commit
-
-
Damien George authored
Addresses issue #1022.
-
- 05 Dec, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer functions (like checking current token kind) are now inlined. This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460 bytes on bare-arm. It also saves a tiny bit of RAM since mp_lexer_t is a bit smaller. Also will run a bit more efficiently.
-
- 09 Oct, 2014 1 commit
-
-
Damien George authored
-
- 30 Jul, 2014 1 commit
-
-
Damien George authored
Lexer is now 8-bit clean inside strings.
-
- 03 Jul, 2014 1 commit
-
-
Damien George authored
-
- 26 Jun, 2014 1 commit
-
-
Chris Angelico authored
-
- 21 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
It defines types used by all other headers. Fixes #691.
-
- 19 Jun, 2014 1 commit
-
-
Emmanuel Blot authored
-
- 14 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
We still have that char vs byte dichotomy, but majority of string operations now use byte.
-
- 03 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
This allows to have multiple "optimization" levels (CPython has two (-OO removes docstrings), we can have more).
-
- 02 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 21 May, 2014 1 commit
-
-
Damien George authored
MP_ALLOC_* -> MICROPY_ALLOC_* MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX MICROPY_EXTRA_* -> MICROPY_PORT_* See issue #35.
-
- 12 May, 2014 1 commit
-
-
Damien George authored
__debug__ now resolves to True or False. Its value needs to be set by mp_set_debug(). TODO: call mp_set_debug in unix/ port. TODO: optimise away "if False:" statements in compiler.
-
- 10 May, 2014 1 commit
-
-
Damien George authored
-
- 03 May, 2014 1 commit
-
-
Damien George authored
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/.
-
- 10 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 15 Mar, 2014 1 commit
-
-
Damien George authored
-
- 15 Feb, 2014 1 commit
-
-
Damien George authored
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.
-
- 12 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 25 Jan, 2014 1 commit
-
-
Damien George authored
-
- 23 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 22 Jan, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
- 21 Jan, 2014 1 commit
-
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 18 Jan, 2014 1 commit
-
-
Damien George authored
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
-
- 15 Jan, 2014 1 commit
-
-
Damien George authored
Parser no longer prints an error, but instead returns an exception ID and message.
-
- 13 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
vstr is initially intended to deal with arbitrary-length strings. By providing a bit lower-level API calls, it will be also useful to deal with arbitrary-length I/O buffers (the difference from strings is that buffers are filled from "outside", via I/O). Another issue, especially aggravated by I/O buffer use, is alloc size vs actual size length. If allocated 1Mb for buffer, but actually read 1 byte, we don't want to keep rest of 1Mb be locked by this I/O result, but rather return it to heap ASAP ("shrink" buffer before passing it to qstr_from_str_take()).
-
- 12 Jan, 2014 1 commit
-
-
Damien George authored
-
- 06 Jan, 2014 2 commits
- 04 Jan, 2014 1 commit
-
-
Damien George authored
-
- 30 Dec, 2013 1 commit
-
-
Damien George authored
-
- 29 Dec, 2013 1 commit
-
-
Damien authored
-
- 21 Dec, 2013 1 commit
-
-
Damien authored
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).
-
- 22 Oct, 2013 2 commits
- 20 Oct, 2013 1 commit
-
-
Damien authored
-