135 Commits (761d2f67415ba43f64c7b04b6ea72fd4b65afc50)

Author SHA1 Message Date
Damien George 35c0cff92b py/parse: Add MICROPY_COMP_CONST_TUPLE option to build const tuples. 3 years ago
Damien George 24bc1f61f9 py/parse: Print const object value in mp_parse_node_print. 3 years ago
Damien George e52f14d057 py/parse: Factor obj extract code to mp_parse_node_extract_const_object. 3 years ago
Damien George 962ad8622e py/parse: Handle check for target small-int size in parser. 3 years ago
Damien George 3c7cab4e98 py/parse: Put const bytes objects in parse tree as const object. 3 years ago
Damien George 65851ebb51 py/parse: Simplify handling of const int parse nodes. 3 years ago
Damien George e6850838cd py/parse: Simplify parse nodes representing a list. 4 years ago
Jim Mussared 692d36d779 py: Implement partial PEP-498 (f-string) support. 3 years ago
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