34 Commits (d72dbb822c96c003a202565006a97a2bfdff9210)

Author SHA1 Message Date
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
Damien George 7d4b6cc868 py/emitnative: Place const objs for native code in separate const table. 6 years ago
Damien George 80db30a510 py/emit: Completely remove set_native_type, arg type is set in compiler. 6 years ago
Damien George 3751512e9d py/emit: Move MP_EMIT_OPT_xxx enums from compile.h to emitglue.h. 6 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Alexander Steffen 299bc62586 all: Unify header guard usage. 7 years ago
Damien George 0d10517a45 py/scope: Factor common code to find locals and close over them. 8 years ago
Damien George d5495966ce py/scope: Shrink scope_t struct by 1 machine word. 8 years ago
Damien George 3dea8c9e92 py/scope: Use lookup-table to determine a scope's simple name. 8 years ago
Damien George 3a3db4dcf0 py: Put all bytecode state (arg count, etc) in bytecode. 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 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 2bf7c09222 py: Properly implement deletion of locals and derefs, and detect errors. 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
Damien George 8dcc0c7924 py: Calculate maximum exception stack size in compiler. 11 years ago
Damien George 8725f8f7de py: Pass all scope flags through to runtime. 11 years ago
Paul Sokolovsky fd31358505 mp_compile(): Properly free module_scope and all nested scopes. 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 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 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