88 Commits (6d82499a487a5f528e268c6d0415393965a75587)

Author SHA1 Message Date
Damien George 6a445b60fa py/lexer: Add support for underscores in numeric literals. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Javier Candeira 35a1fea90b all: Raise exceptions via mp_raise_XXX 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Tom Collins 145796f037 py,extmod: Some casts and minor refactors to quiet compiler warnings. 7 years ago
Tom Collins 6f56412ec3 py/lexer: Process CR earlier to allow newlines checks on chr1. 8 years ago
Tom Collins 2998647c4e py/lexer: Simplify lexer startup by using dummy bytes and next_char(). 8 years ago
Damien George 5010d1958f py/lexer: Simplify and reduce code size for operator tokenising. 8 years ago
Damien George f64a3e296e py/lexer: Remove obsolete comment, since lexer can now raise exceptions. 8 years ago
Damien George 1831034be1 py: Allow lexer to raise exceptions during construction. 8 years ago
Damien George 5124a94067 py/lexer: Convert mp_uint_t to size_t where appropriate. 8 years ago
Damien George 534b7c368d py: Do adjacent str/bytes literal concatenation in lexer, not compiler. 8 years ago
Damien George 773278ec30 py/lexer: Simplify handling of line-continuation error. 8 years ago
Damien George ae43679792 py/lexer: Use strcmp to make keyword searching more efficient. 8 years ago
Damien George a68c754688 py/lexer: Move check for keyword to name-tokenising block. 8 years ago
Damien George 98b3072da5 py/lexer: Simplify handling of indenting of very first token. 8 years ago
Damien George c264414746 py/lexer: Don't generate string representation for period or ellipsis. 8 years ago
Damien George 8beba7310f extmod/vfs_fat: Remove MICROPY_READER_FATFS component. 8 years ago
Damien George dcb9ea7215 extmod: Add generic VFS sub-system. 8 years ago
Damien George c305ae3243 py/lexer: Permanently disable the mp_lexer_show_token function. 8 years ago
Damien George f4aebafe7a py/lexer: Remove unnecessary check for EOF in lexer's next_char func. 8 years ago
Damien George b9c4783273 py/lexer: Remove unreachable code in string tokeniser. 8 years ago
Damien George adccafb42a tests/basics/lexer: Add a test for newline-escaping within a string. 8 years ago
Damien George 5bdf1650de py/lexer: Make lexer use an mp_reader as its source. 8 years ago
Damien George 66d955c218 py/lexer: Rewrite mp_lexer_new_from_fd in terms of mp_reader. 8 years ago
Damien George e5ef15a9d7 py/lexer: Provide generic mp_lexer_new_from_file based on mp_reader. 8 years ago
Damien George 511c083811 py/lexer: Rewrite mp_lexer_new_from_str_len in terms of mp_reader_mem. 8 years ago
Damien George 31101d91ce py/lexer: Remove unnecessary code, and unreachable code. 8 years ago
Damien George 5da0d29d3c py/vstr: Remove vstr.had_error flag and inline basic vstr functions. 8 years ago
Damien George 3ff16ff52e py: Declare constant data as properly constant. 9 years ago
pohmelie 81ebba7e02 py: add async/await/async for/async with syntax 9 years ago
Damien George ea23520403 py: Add MICROPY_DYNAMIC_COMPILER option to config compiler at runtime. 9 years ago
Damien George dd5353a405 py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts. 9 years ago
Damien George 2b000474d9 py/lexer: Properly classify floats that look like hex numbers. 9 years ago
Damien George 0be3c70cd8 py/lexer: Raise SyntaxError when unicode char point out of range. 9 years ago
Damien George 081f9325f5 py/lexer: Raise NotImplError for unicode name escape, instead of assert. 9 years ago
Damien George d241c2a592 py/lexer: Raise SyntaxError when str hex escape sequence is malformed. 9 years ago
Damien George 7f19a39a3b py: Cast argument for printf to int, to be compatible with more ports. 10 years ago
Damien George 7ed58cb663 py: Support unicode (utf-8 encoded) identifiers in Python source. 10 years ago
Dave Hylands 3ad94d6072 extmod: Add ubinascii.unhexlify 10 years ago
Damien George 2e2e404ff7 py: Allow to compile with extra warnings (sign-compare, unused-param). 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George 32bade19d9 py: Convert CR to LF and CR LF to LF in lexer. 10 years ago
Damien George 16677ce311 py: Be more precise about unicode type and disabled unicode behaviour. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George b4b10fd350 py: Put all global state together in state structures. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 451a087075 py: Fix printing of size_t entity; fix qemu-arm for changes to lexer. 10 years ago
Damien George a4c52c5a3d py: Optimise lexer by exposing lexer type. 10 years ago
Damien George 9bf5f2857d py: Add further checks for failed malloc in lexer init functions. 10 years ago