104 Commits (1039c5e6998561c452cfc23a836eec374bef39bd)

Author SHA1 Message Date
Damien George 1039c5e699 py/parse: Split out rule name from rule struct into separate array. 7 years ago
Damien George 2759bec858 py: Extend nan-boxing config to have 47-bit small integers. 7 years ago
Damien George 1f1d5194d7 py/objstr: Make mp_obj_new_str_of_type check for existing interned qstr. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George f615d82d5b py/parse: Simplify handling of errors by raising them directly. 8 years ago
Damien George 5255255fb9 py: Create str/bytes objects in the parser, not the compiler. 8 years ago
Damien George 74f4d2c659 py/parse: Allow parser/compiler consts to be bignums. 8 years ago
Damien George 71019ae4f5 py/grammar: Group no-compile grammar rules together to shrink tables. 8 years ago
Damien George 86e942309a py/parse: Refactor code to remove assert(0)'s. 8 years ago
Damien George 9b525134d1 py/parse: Add code to fold logical constants in or/and/not operations. 8 years ago
Damien George ed9c93f0f1 py/parse: Make mp_parse_node_new_leaf an inline function. 8 years ago
Damien George b0cbfb0492 py/parse: Move function to check for const parse node to parse.[ch]. 8 years ago
Colin Hogben f9b6b37cf6 py: Fix wrong assumption that m_renew will not move if shrinking 8 years ago
Damien George 6d310a5552 py/parse: Only replace constants that are standalone identifiers. 8 years ago
Damien George b1533c4366 py/parse: Treat constants that start with underscore as private. 9 years ago
Damien George 3ff16ff52e py: Declare constant data as properly constant. 9 years ago
Damien George e36ff98c80 py/parse: Add uerrno to list of modules to look for constants in. 9 years ago
Damien George 0c1de1cdee py: Simplify "and" action within parser by making ident-rules explicit. 9 years ago
Damien George eacbd7aeba py: Fix constant folding and inline-asm to work with new async grammar. 9 years ago
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