176 Commits (2276eb808499b81f7c6e32ab1d497afa020c9379)

Author SHA1 Message Date
Damien George d2d64f00fb py: Add "default" to switches to allow better code flow analysis. 10 years ago
Damien George 65ef6b768c py: Only allocate strings/bytes once for load_const_obj. 10 years ago
Damien George 1e1779eacf py: Reluctantly add an extra pass to bytecode compiler. 10 years ago
Damien George c935d69f74 py: Make compiler not crash when default except is not last. 10 years ago
Damien George 4c81ba8015 py: Never intern data of large string/bytes object; add relevant tests. 10 years ago
Damien George ddd1e18801 py: Add config option MICROPY_COMP_MODULE_CONST for module consts. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 83204f3406 py: Allow to properly disable builtin slice operation. 10 years ago
Damien George e37dcaafb4 py: Allow to properly disable builtin "set" object. 10 years ago
Damien George 01039b5bd8 py: Remove last uses of printf from compile; use proper SyntaxError. 10 years ago
Damien George 584ba6762f py: Move global/nonlocal decl code to compiler for proper SyntaxError. 10 years ago
Damien George 6efa66f125 py: Remove unnecessary RULE_none and PN_none from parser. 10 years ago
Damien George e181c0dc07 py: Fix optimised for-loop compiler so it follows proper semantics. 10 years ago
Damien George c33ce606cf py: Fix a semantic issue with range optimisation. 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 10 years ago
Paul Sokolovsky 039887a0ac py: Fix bug with right-shifting small ints by large amounts. 10 years ago
Damien George 391db8669b py: Add more compiler optimisations for constant if/while conditions. 10 years ago
Damien George 235f9b33c8 py: Simplify compilation of elif blocks. 10 years ago
Damien George 090c9236e8 py: Fix compiling of nested while/for and exception handler. 10 years ago
Damien George a91ac2011f py: Make compiler return a proper exception on SyntaxError. 10 years ago
Damien George 00be7a849a py: Fix unix-cpy to compile with uint->mp_uint_t changes. 10 years ago
Damien George 39dc145478 py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. 10 years ago
Damien George 42f3de924b py: Convert [u]int to mp_[u]int_t where appropriate. 10 years ago
Damien George 52b5d76a6b py: Free non-interned strings in the parser when not needed. 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 c90f59ec3a py: Add support for emitting native x86 machine code. 10 years ago
Damien George dda46460ff Code style/whitespace cleanup; remove obsolete headers. 10 years ago
Damien George eb4e18f057 py: Add compiler optimisation for conditions in parenthesis. 10 years ago
Fabian Vogt fe3d16e8c2 Basic native ARM emitter 10 years ago
Damien George a5190a7dac py: Fix typing of viper locals; allow default types in annotation. 10 years ago
Damien George 2ac4af6946 py: Allow viper to have type annotations. 10 years ago
Damien George 6be0b0a8ec py: Clean up and simplify functions in scope; add STATIC in compiler. 10 years ago
Paul Sokolovsky 8215847b4d moductypes: Foreign data interface module, roughly based on ctype ideas. 11 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Damien George b601d9574a py: Improvements to native emitter. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Emmanuel Blot f6932d6506 Prefix ARRAY_SIZE with micropython prefix MP_ 11 years ago
Damien George f0778a7ccb py: Implement default keyword only args. 11 years ago
Damien George 5b5562c1d1 py: Fix stack underflow with optimised for loop. 11 years ago
Damien George 25c84643b6 py: Fix break from within a for loop. 11 years ago
Damien George d1e355ea8e py: Fix check of small-int overflow when parsing ints. 11 years ago
Damien George 5042bce8fb py: Don't automatically intern strings in parser. 11 years ago
Damien George 58ebde4664 Tidy up some configuration options. 11 years ago
Damien George 96f137b24a py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename). 11 years ago
Damien George 3417bc2f25 py: Rename byte_code to bytecode everywhere. 11 years ago
Damien George ffae48d750 py, compiler: Add basic support for A=const(123). 11 years ago
Damien George 36db6bcf54 py, compiler: Improve passes; add an extra pass for native emitter. 11 years ago
Damien George ca25c15d56 py, compiler: Start adding support for compile-time constants. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 708c073250 py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg. 11 years ago