367 Commits (85c51a548fc83d0776029b01b1be3748f82e296a)

Author SHA1 Message Date
Damien George d4b706c4d0 py: Add option to compile without any error messages at all. 4 years ago
Jonathan Hogg 37e1b5c891 py/compile: Don't await __aiter__ special method in async-for. 4 years ago
Damien George f2e267da68 py/compile: Implement PEP 526, syntax for variable annotations. 4 years ago
Damien George 131b0de70a py/grammar.h: Consolidate duplicate sub-rules for :test and =test. 4 years ago
Damien George 1783950311 py/compile: Implement PEP 572, assignment expressions with := operator. 4 years ago
Damien George 0fd91e39b1 py/compile: Convert scope test to SCOPE_IS_COMP_LIKE macro. 4 years ago
Damien George 172fc040aa py/parse: Make mp_parse_node_extract_list return size_t instead of int. 5 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Jim Mussared 85858e72df py/objexcept: Allow compression of exception message text. 5 years ago
Jim Mussared a9a745e4b4 py: Use preprocessor to detect error reporting level (terse/detailed). 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Petr Viktorin e6c9800645 py/compile: Allow 'return' outside function in minimal builds. 5 years ago
Petr Viktorin 57c18fdd38 py/compile: Coalesce error message for break/continue outside loop. 5 years ago
Damien George 9adedce42e py: Add new Xtensa-Windowed arch for native emitter. 5 years ago
Petr Viktorin 25a9bccdee py/compile: Disallow 'import *' outside module level. 5 years ago
Josh Lloyd 7d58a197cf py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions. 5 years ago
Damien George 14e203282a py/compile: Use calculation instead of switch to convert token to op. 5 years ago
Milan Rossa 310b3d1b81 py: Integrate sys.settrace feature into the VM and runtime. 5 years ago
Damien George c7c6703950 py/compile: Improve the line numbering precision for lambdas. 5 years ago
Damien George af20c2ead3 py: Add global default_emit_opt variable to make emit kind persistent. 5 years ago
Milan Rossa ae6fe8b43c py/compile: Improve the line numbering precision for comprehensions. 5 years ago
Jun Wu 089c9b71d1 py: remove "if (0)" and "if (false)" branches. 6 years ago
Damien George 9ef784dcc6 py/asmthumb: Support asm_thumb code running on normal ARM processors. 6 years ago
Damien George 5a6026c614 py/compile: Check that arch is set when compiling native, viper or asm. 6 years ago
Damien George 55fcb83a42 py/compile: Support multiple inline asm emitters. 6 years ago
Damien George d9d92f27d7 py/compile: Add support to select the native emitter at runtime. 6 years ago
Damien George 1396a026be py: Add support to save native, viper and asm code to .mpy files. 6 years ago
Damien George 01a1f31f67 py/emitnative: Consolidate where HASCONSTS is set to load-const-obj fun. 6 years ago
Damien George 5a2599d962 py: Replace POP_BLOCK and POP_EXCEPT opcodes with POP_EXCEPT_JUMP. 6 years ago
Damien George e1fb03f3e2 py: Fix VM crash with unwinding jump out of a finally block. 6 years ago
Damien George 0779693c23 py/compile: Add optimisation to compile OrderedDict inplace. 6 years ago
Damien George 12ce9f2689 py/compile: Fix handling of unwinding BaseException in async with. 6 years ago
Damien George 4ee2c2a4cd py: Eliminate warnings about unused arguments when debugging disabled. 6 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 deb67569ff py/compile: Swap order of pop_block/pop_except in "except as" handler. 6 years ago
Damien George e328a5d469 py/scope: Optimise scope_find_or_add_id to not need "added" arg. 6 years ago
Damien George ba92c79841 py/compile: Remove unneeded variable from global/nonlocal stmt helpers. 6 years ago
Damien George 9201f46cc8 py/compile: Fix case of eager implicit conversion of local to nonlocal. 6 years ago
Damien George cc2bd63c57 py/emitnative: Implement yield and yield-from in native emitter. 6 years ago
Damien George 7d4b6cc868 py/emitnative: Place const objs for native code in separate const table. 6 years ago
Damien George b01f66c5f1 py: Shorten error messages by using contractions and some rewording. 6 years ago
Damien George 93d71c5436 py/emitnative: Make viper funcs run with their correct globals context. 6 years ago
Damien George 43f1848bfa py: Make viper functions have the same entry signature as native. 6 years ago
Damien George 9f2067288a py/compile: Factor code that compiles viper type annotations. 6 years ago
Damien George a169a5848c py/compile: Merge viper annotation and normal param compilation stages. 6 years ago
Damien George 80db30a510 py/emit: Completely remove set_native_type, arg type is set in compiler. 6 years ago
Damien George 07caf4f969 py/emit: Remove need to call set_native_type to set viper return type. 6 years ago
Damien George 1d7c221b30 py/emit: Remove need to call set_native_type to set native/viper mode. 6 years ago
Damien George 4f3d9429b5 py: Fix native functions so they run with their correct globals context. 6 years ago