84 Commits (9698a60591b47798e24040d61df809f9d6e3584b)

Author SHA1 Message Date
Damien George 8d4d6731f5 py/parse: When looking up consts, check they exist before checking type. 9 years ago
Damien George d6c558c0aa py/parse: Use m_renew_maybe to ensure that memory is shrunk in-place. 9 years ago
Antonin ENFRUN efc971e8f9 py: unary_op enum type fix, and a cast to remove clang warning 9 years ago
Damien George 7dbf74c5b9 py/parse: Include unistd.h for ssize_t definition. 9 years ago
Damien George 22b2265053 py/parse: Improve constant folding to operate on small and big ints. 9 years ago
Damien George 93b3726240 py/parse: Optimise away parse node that's just parenthesis around expr. 9 years ago
Damien George dd5353a405 py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts. 9 years ago
Damien George 16a6a47a7b py/parse: Replace mp_int_t/mp_uint_t with size_t etc, where appropriate. 9 years ago
Damien George b8cfb0d7b2 py: Add support for 64-bit NaN-boxing object model, on 32-bit machine. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Damien George 2c83894257 py: Implement default and star args for lambdas. 9 years ago
Damien George fdfcee7b1e py/parse: Make parser error handling cleaner, less spaghetti-like. 9 years ago
Damien George 64f2b213bb py: Move constant folding from compiler to parser. 9 years ago
Damien George 366239b8b9 py/parse: Factor logic when creating parse node from and-rule. 9 years ago
Damien George 58e0f4ac50 py: Allocate parse nodes in chunks to reduce fragmentation and RAM use. 9 years ago
Damien George 65dc960e3b unix-cpy: Remove unix-cpy. It's no longer needed. 9 years ago
Damien George 96f0dd3cbc py/parse: Fix handling of empty input so it raises an exception. 9 years ago
Damien George fa7c61dfab py/parse: De-duplicate and simplify code for parser "or" rule. 9 years ago
Damien George ade9a05236 py: Improve allocation policy of qstr data. 10 years ago
Damien George 4735c45c51 py: Clean up some bits and pieces in parser, grammar. 10 years ago
nhtshot 5d323defe4 py: Update parse.c&mpconfig.h to reflect rename of mp_lexer_show_token. 10 years ago
Damien George dfe944c3e5 py: Expose compile.c:list_get as mp_parse_node_extract_list. 10 years ago
Damien George f804833a97 py: Initialise variables in mp_parse correctly, to satisfy gcc warning. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George 0bfc7638ba py: Protect mp_parse and mp_compile with nlr push/pop block. 10 years ago
Damien George 5c670acb1f py: Be more machine-portable with size of bit fields. 10 years ago
Damien George 50912e7f5d py, unix, stmhal: Allow to compile with -Wshadow. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George d2d64f00fb py: Add "default" to switches to allow better code flow analysis. 10 years ago
Damien George 4c81ba8015 py: Never intern data of large string/bytes object; add relevant tests. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 6efa66f125 py: Remove unnecessary RULE_none and PN_none from parser. 10 years ago
Damien George b47ea4eadd py: Add blank and ident flags to grammar rules to simplify parser. 10 years ago
Damien George 2870d85a11 py: Save a few code bytes in parser; make vars local where possible. 10 years ago
Damien George a4c52c5a3d py: Optimise lexer by exposing lexer type. 10 years ago
Damien George e7bb0443cd py: Properly free string parse-node; add assertion to gc_free. 10 years ago
Damien George 52b5d76a6b py: Free non-interned strings in the parser when not needed. 10 years ago
Damien George 2ac4af6946 py: Allow viper to have type annotations. 10 years ago
Damien George 381618269a parser: Convert (u)int to mp_(u)int_t. 11 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Damien George d1e355ea8e py: Fix check of small-int overflow when parsing ints. 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Damien George 5042bce8fb py: Don't automatically intern strings in parser. 11 years ago
Damien George 58ebde4664 Tidy up some configuration options. 11 years ago
Damien George 1b82e9af5c py: Improve handling of memory error in parser. 11 years ago
Paul Sokolovsky 9e76b1181b Draft approach towards resolving https://github.com/micropython/micropython/issues/560#issuecomment-42213955 11 years ago
Damien George 93afa230a4 py, parser: Add commented-out code to discard doc strings. 11 years ago
Damien George 66e18f04d8 py: Turn down amount of RAM parser and compiler use. 11 years ago