Dave Hylands
f14b92b9e1
REPl working on UART6 with STMHAL
11 years ago
Damien George
46239413d0
stm: Implement mp_import_stat.
To follow up pull request #309 .
11 years ago
Damien George
e09ffa1400
Search paths properly on import and execute __init__.py if it exists.
11 years ago
Paul Sokolovsky
9110896063
Remove older import helpers, no longer used.
11 years ago
Damien George
b829b5caec
Implement mp_parse_node_free; print properly repr(string).
11 years ago
Damien George
55baff4c9b
Revamp qstrs: they now include length and hash.
Can now have null bytes in strings. Can define ROM qstrs per port using
qstrdefsport.h
11 years ago
Damien George
8161a10de1
stm: Add stm import support.
11 years ago
Dave Hylands
9b7b947b01
Updated teensy to use common code from stm directory.
Updated mconfigport.h to enable GC
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
66028ab6dc
Basic implementation of import.
import works for simple cases. Still work to do on finding the right
script, and setting globals/locals correctly when running an imported
function.
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.
A big change. Micro Python objects are allocated as individual structs
with the first element being a pointer to the type information (which
is itself an object). This scheme follows CPython. Much more flexible,
not necessarily slower, uses same heap memory, and can allocate objects
statically.
Also change name prefix, from py_ to mp_ (mp for Micro Python).
11 years ago
Damien
0c5827fc65
stm: improved GC, and cooked output for VCP.
11 years ago
Damien
fa2162bc77
Integrate new lexer stream with stm framework.
11 years ago