111 Commits (e1ae9939aca230758951f5b5b45084374e497254)

Author SHA1 Message Date
Damien George c7cb1dfcb9 py/parse: Fix macro evaluation by avoiding empty __VA_ARGS__. 7 years ago
Damien George d3fbfa491f py/parse: Update debugging code to compile on 64-bit arch. 7 years ago
Damien George 0016a45368 py/parse: Compress rule pointer table to table of offsets. 7 years ago
Damien George c2c92ceefc py/parse: Remove rule_t struct because it's no longer needed. 7 years ago
Damien George 66d8885d85 py/parse: Pass rule_id to push_result_token, instead of passing rule_t*. 7 years ago
Damien George 815a8cd1ae py/parse: Pass rule_id to push_result_rule, instead of passing rule_t*. 7 years ago
Damien George 845511af25 py/parse: Break rule data into separate act and arg arrays. 7 years ago
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