103 Commits (85c85e8f0d6e44827553f67a4ab67c2cb3078fdd)

Author SHA1 Message Date
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Mathieu Serandour c85db05244 py/lexer: Change token position for new lines. 1 year ago
Jim Mussared 5015779a6f py/builtinevex: Handle invalid filenames for execfile. 1 year ago
Jim Mussared 276bfa3146 py/lexer: Add missing initialisation for fstring_args_idx. 1 year ago
Jared Hancock b3cd41dd4b py/lexer: Allow conversion specifiers in f-strings (e.g. !r). 2 years ago
Jim Mussared fb8792c095 py/lexer: Wrap in parenthesis all f-string arguments passed to format. 2 years ago
Damien George c49d5207e9 py/persistentcode: Remove unicode feature flag from .mpy file. 3 years ago
Damien George 11ed94797d py/lexer: Support nested [] and {} characters within f-string params. 3 years ago
Jim Mussared 5555f147df py/lexer: Clear fstring_args vstr on lexer free. 3 years ago
Jim Mussared 692d36d779 py: Implement partial PEP-498 (f-string) support. 3 years ago
Emil Renner Berthing ccd92335a1 py, extmod: Introduce and use MP_FALLTHROUGH macro. 5 years ago
Damien George 1783950311 py/compile: Implement PEP 572, assignment expressions with := operator. 4 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 2069c563f9 py: Add support for matmul operator @ as per PEP 465. 5 years ago
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