micropython/py
Damien George 1b82e9af5c py: Improve handling of memory error in parser.
Parser shouldn't raise exceptions, so needs to check when memory
allocation fails.  This patch does that for the initial set up of the
parser state.

Also, we now put the parser object on the stack.  It's small enough to
go there instead of on the heap.

This partially addresses issue #558.
2014-05-10 17:36:41 +01:00
..
argcheck.c Merge branch 'master' of https://github.com/micropython/micropython 2014-05-06 16:52:35 +00:00
asmthumb.c py: Fix stack access in thumb native emitter. 2014-05-07 23:27:45 +01:00
asmthumb.h py, compiler: Improve passes; add an extra pass for native emitter. 2014-05-07 17:24:22 +01:00
asmx64.c py, compiler: Improve passes; add an extra pass for native emitter. 2014-05-07 17:24:22 +01:00
asmx64.h py, compiler: Improve passes; add an extra pass for native emitter. 2014-05-07 17:24:22 +01:00
bc.h py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
bc0.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
binary.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
binary.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
builtin.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
builtin.h modgc: Add new module for GC-related functionality. 2014-05-06 02:28:49 +03:00
builtinevex.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
builtinimport.c builtinimport: Fix broken namespace imports due to dup vstr_cut_tail_bytes(). 2014-05-10 19:00:03 +03:00
builtintables.c objset: Give up and implement frozenset. 2014-05-10 16:56:20 +03:00
builtintables.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
compile.c py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
compile.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
emit.h py, compiler: Improve passes; add an extra pass for native emitter. 2014-05-07 17:24:22 +01:00
emitbc.c py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
emitcommon.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
emitcpy.c py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
emitglue.c py: Combine native emitters to 1 glue function; distinguish viper. 2014-05-10 13:40:46 +01:00
emitglue.h py: Combine native emitters to 1 glue function; distinguish viper. 2014-05-10 13:40:46 +01:00
emitinlinethumb.c py: Combine native emitters to 1 glue function; distinguish viper. 2014-05-10 13:40:46 +01:00
emitnative.c py: Combine native emitters to 1 glue function; distinguish viper. 2014-05-10 13:40:46 +01:00
emitpass1.c py, compiler: Improve passes; add an extra pass for native emitter. 2014-05-07 17:24:22 +01:00
formatfloat.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
formatfloat.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
gc.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
gc.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
grammar.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
lexer.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
lexer.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
lexerstr.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
lexerunix.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
lexerunix.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
makeqstrdata.py More relaxed parsing of preprocessed qstr header 2014-05-03 10:26:31 +02:00
malloc.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
map.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
misc.h py: Improve handling of memory error in parser. 2014-05-10 17:36:41 +01:00
mkenv.mk Have make remove targets if a recipie fails. 2014-04-16 11:36:44 -07:00
mkrules.mk build: Simplify build directory layout by putting all headers in genhdr. 2014-04-17 18:03:27 +01:00
modarray.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
modcmath.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
modcollections.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
modgc.c Add gc.enable, gc.disable; remove pyb.gc. 2014-05-08 23:04:49 +01:00
modio.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
modmath.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
modmicropython.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
modstruct.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
modsys.c modsys: Enable sys.exit() per port after all. 2014-05-10 17:26:47 +03:00
mpconfig.h modsys: Enable sys.exit() per port after all. 2014-05-10 17:26:47 +03:00
mpz.c Windows MSVC port 2014-05-08 10:06:43 +02:00
mpz.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
nlr.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
nlrsetjmp.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
nlrthumb.S Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
nlrx64.S Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
nlrx86.S Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
obj.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
obj.h objset: Give up and implement frozenset. 2014-05-10 16:56:20 +03:00
objarray.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objarray.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objbool.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objboundmeth.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objcell.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objclosure.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objcomplex.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objdict.c py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 2014-05-10 13:55:11 +01:00
objenumerate.c Merge branch 'master' of https://github.com/micropython/micropython 2014-05-06 16:52:35 +00:00
objexcept.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objfilter.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objfloat.c py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 2014-05-10 13:55:11 +01:00
objfun.c py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 2014-05-10 13:55:11 +01:00
objfun.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objgenerator.c py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
objgenerator.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objgetitemiter.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objint.c Windows MSVC port 2014-05-08 10:06:43 +02:00
objint.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objint_longlong.c py: Improve native emitter; now supports more opcodes. 2014-05-07 18:30:52 +01:00
objint_mpz.c py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 2014-05-10 13:55:11 +01:00
objlist.c py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 2014-05-10 13:55:11 +01:00
objlist.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objmap.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objmodule.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objmodule.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objnamedtuple.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objnone.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objobject.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objproperty.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objrange.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objset.c py: Disable frozenset by default, enable on unix. 2014-05-10 16:56:20 +03:00
objslice.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objstr.c py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 2014-05-10 13:55:11 +01:00
objstr.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objstringio.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objtuple.c py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 2014-05-10 13:55:11 +01:00
objtuple.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objtype.c objtype: Don't treat inheritance from "object" as from native type. 2014-05-10 16:56:20 +03:00
objtype.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
objzip.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
opmethods.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
parse.c py: Improve handling of memory error in parser. 2014-05-10 17:36:41 +01:00
parse.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
parsehelper.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
parsehelper.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
parsenum.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
parsenum.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
parsenumbase.c py: Fix base "detection" for int('0<hexdigit>', 16). 2014-05-10 04:45:15 +03:00
parsenumbase.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
pfenv.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
pfenv.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
py-version.sh py-version.sh: Use --always option of git describe. 2014-05-05 21:28:12 +03:00
py.mk modgc: Add new module for GC-related functionality. 2014-05-06 02:28:49 +03:00
qstr.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
qstr.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
qstrdefs.h modsys, unix: Add sys.exit(), should be implemented by a port. 2014-05-10 16:56:21 +03:00
repl.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
repl.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
runtime.c windows: Add modtime implementation 2014-05-09 13:58:15 +02:00
runtime.h Merge branch 'master' of https://github.com/micropython/micropython 2014-05-06 16:52:35 +00:00
runtime0.h runtime0.h: Group binary ops by fives. 2014-05-10 04:44:55 +03:00
scope.c py: Turn down amount of RAM parser and compiler use. 2014-05-05 13:19:03 +01:00
scope.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
sequence.c bytes: Implement comparison and other binary operations. 2014-05-10 04:45:02 +03:00
showbc.c py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
smallint.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
smallint.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
stream.c stream: Make non-blcoking stream support configurable. 2014-05-07 02:25:45 +03:00
stream.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
unicode.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
vm.c py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
vmentrytable.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
vstr.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00