127 Commits (ca0c75f5042cdf602585b08184f132d7ab4713f3)

Author SHA1 Message Date
Damien George 843dcd4f85 py/parse: Expose rule-name printing as MICROPY_DEBUG_PARSE_RULE_NAME. 4 years ago
Damien George acdb0608b7 py/parse: Pass in an mp_print_t to mp_parse_node_print. 4 years ago
Damien George 172fc040aa py/parse: Make mp_parse_node_extract_list return size_t instead of int. 5 years ago
Damien George 4ede703687 py/parse: Support constant folding of power operator for integers. 5 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 5 years ago
Damien George 4914731e58 py/parse: Remove unnecessary check in const folding for ** operator. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 3f39d18c2b all: Add *FORMAT-OFF* in various places. 5 years ago
Damien George b86075ef1f py/parse: Add parenthesis around calculated bit-width in struct. 5 years ago
Josh Lloyd 7d58a197cf py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions. 5 years ago
Damien George 2069c563f9 py: Add support for matmul operator @ as per PEP 465. 5 years ago
Damien George 9bf2feba63 py/parse: Use calculation instead of table to convert token to operator. 5 years ago
Damien George 6ce7c051e8 py/lexer: Reorder operator tokens to match corresponding binary ops. 5 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Damien George b01f66c5f1 py: Shorten error messages by using contractions and some rewording. 6 years ago
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