147 Commits (659113825d10bf2ae71dd215a8597451e505982d)

Author SHA1 Message Date
Damien George 3c8089d1b1 py/lexer: Support raw f-strings. 5 months ago
Angus Gratton 71044a4186 py/parse: Zero out dangling parse tree pointer to fix potential GC leak. 8 months ago
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Damien George 5e122b11ea py/parse: Always free lexer even if an exception is raised. 1 year ago
Jim Mussared f5f9edf645 all: Rename UMODULE to MODULE in preprocessor/Makefile vars. 2 years ago
Jim Mussared 1bf2dcb15e all: Rename mp_umodule*, mp_module_umodule* to remove the "u" prefix. 2 years ago
Damien George 957bd51184 py/parse: Fix build when COMP_CONST_FOLDING=0 and COMP_MODULE_CONST=1. 2 years ago
Damien George b1229efbd1 all: Fix spelling mistakes based on codespell check. 2 years ago
Angus Gratton 25ff5b52d9 py/parse: Allow const types other than int to optimise as true/false. 2 years ago
Damien George 627ba38154 py/parsenum: Optimise when building with complex disabled. 2 years ago
Damien George f63b4f85aa py/parse: Work around xtensa esp-2020r3 compiler bug. 2 years ago
Damien George 079f3e5e5b py/parse: Allow all constant objects to be used in "X = const(o)". 3 years ago
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