summaryrefslogtreecommitdiffstatshomepage
path: root/py/lexerunix.c
Commit message (Collapse)AuthorAge
* py: Move to guarded includes, everywhere in py/ core.Damien George2015-01-01
| | | | Addresses issue #1022.
* py: Optimise lexer by exposing lexer type.Damien George2014-12-05
| | | | | | | | | 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.
* py: Add further checks for failed malloc in lexer init functions.Damien George2014-10-09
|
* py: Change lexer stream API to return bytes not chars.Damien George2014-07-30
| | | | Lexer is now 8-bit clean inside strings.
* py: Include mpconfig.h before all other includes.Paul Sokolovsky2014-06-21
| | | | | | It defines types used by all other headers. Fixes #691.
* Tidy up some configuration options.Damien George2014-05-21
| | | | | | | | | | 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.
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | 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/.
* py: Fix lexerunix, where not all data may be read from a file.Damien George2014-04-28
| | | | Addresses issue #526.
* py: Adjust #includes in lexerunix.c.Damien George2014-04-13
|
* py: don't look for any additional headers when lexerunix is disabledIlya Dmitrichenko2014-04-12
|
* Make lexerunix not allocate RAM for the entire script.Damien George2014-04-10
| | | | Now reads in small chunks at a time.
* py: Clean up includes.xbe2014-03-17
| | | | Remove unnecessary includes. Add includes that improve portability.
* Remove older import helpers, no longer used.Paul Sokolovsky2014-02-05
|
* Implement support for sys.path when loading modules.Paul Sokolovsky2014-02-05
| | | | | | | | sys.path is not initialized by rt_init(), that's left for platform-specific startup code. (For example, bare metal port may have some hardcoded defaults, and let user change sys.path directly; while port for OS with environment feature can take path from environment). If it's not explicitly initialized, modules will be imported only from a current directory.
* Implement mp_parse_node_free; print properly repr(string).Damien George2014-01-25
|
* Revamp qstrs: they now include length and hash.Damien George2014-01-21
| | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
* Move lexerstr to main py directory (everyone uses it).Damien George2014-01-08
|
* Factor and simplify Makefile's and mpconfig, part 2.Damien George2014-01-07
|
* Basic implementation of import.Damien George2014-01-03
| | | | | | import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
* Change memory allocation API to require size for free and realloc.Damien2013-12-29
|
* Handle return value of read() call.Paul Sokolovsky2013-12-29
|
* Add unix-cpy, used to test Micro Python byte code against CPython.Damien2013-12-29