41 Commits (db1ac360c39aeedd28b6ef5d653faaa14c3ce01e)

Author SHA1 Message Date
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
Damien George 94fbe9711a py: Change lexer stream API to return bytes not chars. 10 years ago
Damien George 54eb4e723e lexer: Convert type (u)int to mp_(u)int_t. 11 years ago
Chris Angelico 2ba2299d28 lexer, vstr: Add unicode support. 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
Paul Sokolovsky b0bb458810 unicode: String API is const byte*. 11 years ago
Paul Sokolovsky d3439d0c60 py: Instead of having "debug on" var, have "optimization level" var. 11 years ago
Paul Sokolovsky b325d25e46 lexer: Add another comment for somewhat obscure way __debug__ is handled. 11 years ago
Damien George 58ebde4664 Tidy up some configuration options. 11 years ago
Damien George 97f9a2813e py: Add support for __debug__ constant. 11 years ago
Damien George e1199ecf10 py, lexer: Add allocation policy config; return NULL if can't allocate. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 2e9eb2d207 py: Fix lexer so it doesn't allow ! and .. 11 years ago
Damien George a91f41407b py, lexer: Fix parsing of raw strings (allow escaping of quote). 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 280e7208d8 Add vstr_ins and vstr_cut_out; improve stmhal readline. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Paul Sokolovsky 520e2f58a5 Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 11 years ago
Damien George b829b5caec Implement mp_parse_node_free; print properly repr(string). 11 years ago
Paul Sokolovsky 624ed5d563 mp_lexer_free(): Free lex->indent_level array. 11 years ago
Damien George f64086f80f Fix 1 warning and 1 bug. 11 years ago
Paul Sokolovsky 0b7184dcb8 Implement octal and hex escapes in strings. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Damien George 08335004cf Add source file name and line number to error messages. 11 years ago
Damien George 9528cd66d7 Convert parse errors to exceptions. 11 years ago
Paul Sokolovsky 5d2499c638 Add "buffer management" and "shrink" API calls to vstr. 11 years ago
Damien George 69a818d418 py: Improve memory management for parser; add lexer error for bad line cont. 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 e9906ac3d7 Add ellipsis object. 11 years ago
Damien George 8cc96a35e5 Put unicode functions in unicode.c, and tidy their names. 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 92c06561a3 Improve REPL compount statement detection. 11 years ago
Damien bb5316b905 gc: reserve first block; lexer: free vstr. 11 years ago
Damien fa2162bc77 Integrate new lexer stream with stm framework. 11 years ago
Damien a5185f4bc8 Abstract out back-end stream functionality from lexer. 11 years ago
Damien 9f770c658f Fix up insertion of newline at end of lexer stream. 11 years ago
Damien 91d387de7d Improve indent/dedent error checking and reporting. 11 years ago
Damien 429d71943d Initial commit. 11 years ago