42 Commits (85c85e8f0d6e44827553f67a4ab67c2cb3078fdd)

Author SHA1 Message Date
Jim Mussared d694ac6e1b py/makeqstrdata.py: Ensure that scope names get low qstr values. 8 months ago
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Damien George f2040bfc7e py: Rework bytecode and .mpy file format to be mostly static data. 3 years ago
Emil Renner Berthing 6324c3e054 py/scope: Name and use id_kind_type_t. 4 years ago
Romain Goyet bd63c26dd5 py/scope: Add assert to check that low numbered qstrs do fit in uint8_t. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George e328a5d469 py/scope: Optimise scope_find_or_add_id to not need "added" arg. 6 years ago
Damien George 9201f46cc8 py/compile: Fix case of eager implicit conversion of local to nonlocal. 6 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 0d10517a45 py/scope: Factor common code to find locals and close over them. 8 years ago
Damien George 3dea8c9e92 py/scope: Use lookup-table to determine a scope's simple name. 8 years ago
Damien George dd5353a405 py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts. 9 years ago
Damien George 65dc960e3b unix-cpy: Remove unix-cpy. It's no longer needed. 9 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 584ba6762f py: Move global/nonlocal decl code to compiler for proper SyntaxError. 10 years ago
Damien George 7ff996c237 py: Convert [u]int to mp_[u]int_t in emit.h and associated .c files. 10 years ago
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. 10 years ago
Damien George 6be0b0a8ec py: Clean up and simplify functions in scope; add STATIC in compiler. 10 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Damien George 58ebde4664 Tidy up some configuration options. 11 years ago
Damien George 66e18f04d8 py: Turn down amount of RAM parser and compiler use. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 2827d62e8b py: Implement keyword-only args. 11 years ago
Damien George df8127a17e py: Remove unique_codes from emitglue.c. Replace with pointers. 11 years ago
Damien George 11d8cd54c9 py, compiler: Turn id_info_t.param into a set of flags. 11 years ago
Damien George 78035b995f py, compiler: Clean up and compress scope/compile structures. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 8725f8f7de py: Pass all scope flags through to runtime. 11 years ago
Paul Sokolovsky ab5d08280b Allow qstr's with non-ident chars, construct good identifier for them. 11 years ago
Paul Sokolovsky fd31358505 mp_compile(): Properly free module_scope and all nested scopes. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Damien George cbd2f7482c py: Add module/function/class name to exceptions. 11 years ago
ian-v 5fd8fd2c16 Revert MP_BOOL, etc. and use <stdbool.h> instead 11 years ago
ian-v 7a16fadbf8 Co-exist with C++ (issue #85) 11 years ago
Damien George 6baf76e28b py: make closures work. 11 years ago
Damien 732407f1bf Change memory allocation API to require size for free and realloc. 11 years ago
Damien d99b05282d Change object representation from 1 big union to individual structs. 11 years ago
Damien 9ecbcfff99 py: work towards working closures. 11 years ago
Damien 27fb45eb1c Add local_num skeleton framework to deref/closure emit calls. 11 years ago
Damien c025ebb2dc Separate out mpy core and unix version. 11 years ago
Damien 6cdd3af601 Implement built-in decorators to select emit type. 11 years ago
Damien b05d707b23 Further factorise PASS_1 out of specific emit code. 11 years ago
Damien 415eb6f850 Restructure emit so it goes through a method table. 11 years ago
Damien 429d71943d Initial commit. 11 years ago