Damien George
6baf76e28b
py: make closures work.
11 years ago
Paul Sokolovsky
2efbc622cb
Typo fix in comment.
11 years ago
Paul Sokolovsky
e1151e463d
Use rm -rf to remove build dir, so it doesn't error out if dir doesn't exist.
11 years ago
Damien George
8cc96a35e5
Put unicode functions in unicode.c, and tidy their names.
11 years ago
Damien George
212c296c0b
Make unix-cpy cross platform; remove dependency of asmx64 on mpconfig.
11 years ago
Damien George
cd340c44c2
Merge branch 'cross-plat' of https://github.com/pfalcon/micropython into pfalcon-cross-plat
11 years ago
Paul Sokolovsky
e85c38992d
Make "unix" target be crossplatform and support x86, x64, ARM hosts.
11 years ago
Damien
046147dcd5
Small change to handling of integers in run-tests.
11 years ago
Damien
39977a56da
Add basic functionality tests for the Python bit.
11 years ago
Damien
dae7eb7226
py: add dict length function, and fix rt_store_set.
11 years ago
Damien
732407f1bf
Change memory allocation API to require size for free and realloc.
11 years ago
Damien
a1c8e5737c
Update README.md.
11 years ago
Damien
02a7c41e76
py: implement POP_BLOCK in VM.
11 years ago
Damien George
319b28a355
Merge pull request #3 from pfalcon/for-upstream
Trivial fixes for building unix version
11 years ago
Damien
5ebbfe7e51
Add 2 files to a gitignore.
11 years ago
Damien
2eda70874e
Add tests to test compiler and emitted byte code.
11 years ago
Paul Sokolovsky
729fd12fbf
Don't error out if build/ directory already exists.
11 years ago
Paul Sokolovsky
44d0f3cfa2
Handle return value of read() call.
11 years ago
Damien
de690d128b
Add unix-cpy, used to test Micro Python byte code against CPython.
11 years ago
Damien
b86e3f9293
py: implement some basic exception matching.
11 years ago
Damien
8f9e2ee157
Add code in VM to handle nested exceptions correctly.
11 years ago
Damien
dd12d1378f
Parse upper-case hex numbers correctly.
11 years ago
Damien
7f7636e41c
Add CODECONVENTIONS, and modify i2c module to conform.
11 years ago
Hagen Kaye
1e6a25882c
Merge branch 'master' of https://github.com/dpgeorge/micropython
11 years ago
Hagen Kaye
07590c2739
changes to Makefile and main.c to add i2c.c
11 years ago
Hagen Kaye
6474598c65
Added i2c python interface object
11 years ago
Damien
d0cad1905a
Small edits to main README.
11 years ago
Damien
b8ecc29f3b
Add PYBv3 EAGLE files, gerbers, schematic, BOM and assembly guide.
11 years ago
Damien
5bbc3cdc0e
stm: Tidy up some wlan code.
11 years ago
Damien
6f95432407
stm: fix some compiler warnings in CC3000 code.
11 years ago
Damien
d9d6201b52
py: simplify __next__ method for generators.
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
e2880aa2fd
Fix a few compiler warnings.
11 years ago
Damien
ba66a8fc57
Small changes to README.
11 years ago
Damien
b4c688e2f0
Add basic instructions to README.
11 years ago
Damien
f0d0940638
Add tools/dfu.py, and use it in stm/Makefile.
11 years ago
Damien
5e6ebd77d2
Add LICENSE and README.
11 years ago
Damien
b73085d288
stm: add pyb.sd_test; flash cache flushed only via MSD.
11 years ago
Damien
a3dcd9e80c
py: add more Python built-in functions.
11 years ago
Damien
8c3da5c2c5
stm: flush storage cache immediately; improve user interface.
11 years ago
Damien
0f08267fa4
unix: include obj.h, and build additional py files.
11 years ago
Damien
660365e14c
py: split runtime into map, obj, builtin.
11 years ago
Damien
a1b2693161
py: remove further unnecessary emit_verbatim code.
11 years ago
Damien
e388f1034e
py: fix bug with doc string not recognised after first newline of file.
11 years ago
Damien
02f8941bf6
py: reduce use of emit_verbatim calls to minimum.
11 years ago
Damien
9ecbcfff99
py: work towards working closures.
11 years ago
Damien
5285155ef7
stm: add basic Servo class, and stop and standby functions.
11 years ago
Damien
ec643130d0
stm: add timer to storage cache so it can be flushed.
11 years ago
Damien
318aec6ba9
py: emit correct id for closed over variables.
11 years ago
Damien
6332174ab4
py: compiler supports string juxtaposition=concatenation.
11 years ago