50 Commits (b26def0644b7f4c01cf616a24b6fe18f0737ebb6)

Author SHA1 Message Date
stijn 0ba68f8a1d all: Fix implicit floating point promotion. 5 years ago
stijn b909e8b2dd Revert "all: Fix implicit casts of float/double, and signed comparison." 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Jim Mussared a9a745e4b4 py: Use preprocessor to detect error reporting level (terse/detailed). 5 years ago
David Lechner a2110bd3fc all: Fix implicit casts of float/double, and signed comparison. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Josh Lloyd 7d58a197cf py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions. 5 years ago
Romain Goyet b768cc6ca8 py/parsenum: Avoid rounding errors with negative powers-of-10. 6 years ago
Damien George 6a445b60fa py/lexer: Add support for underscores in numeric literals. 7 years ago
Damien George f2ec792554 py/parsenum: Adjust braces so they are balanced. 7 years ago
Jeff Epler 4f71a2a75a py/parsenum: Avoid undefined behavior parsing floats with large exponents. 7 years ago
Damien George 5efc575067 py/parsenum: Use int instead of mp_int_t for parsing float exponent. 7 years ago
Damien George b75cb8392b py/parsenum: Fix parsing of floats that are close to subnormal. 7 years ago
Damien George 84895f1a21 py/parsenum: Improve parsing of floating point numbers. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George ca7af9a778 py/parsenum: Fix warning for signed/unsigned comparison. 8 years ago
Damien George c2dd494bd9 py/parsenum: Simplify and generalise decoding of digit values. 8 years ago
Damien George 561844f3ba py: Add MICROPY_FLOAT_CONST macro for defining float constants. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 2599672384 py/parsenum: Use pow function to apply exponent to decimal number. 9 years ago
Damien George 06b398489e py/parsenum: Fix compiler warnings for no decl and signed comparison. 9 years ago
Damien George dddb98db8b py/parsenum: Use size_t to count bytes, and int for type of base arg. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 5f3c3ec5e6 py/parsenum: Provide detailed error for int parsing with escaped bytes. 9 years ago
Damien George 2a1090a637 py: Clarify comment in parsenum.c about ValueError vs SyntaxError. 10 years ago
Daniel Campora 228c68a9cd py: Change exception type to ValueError when error reporting is terse. 10 years ago
Damien George 0ec8cf8e80 py/parsenum.c: Rename "raise" func to "raise_exc" to avoid name clash. 10 years ago
Damien George d4bd37a561 py: Fix printing of error message when parsing malformed integer. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 1e9a92f84f py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled. 10 years ago
Damien George 381618269a parser: Convert (u)int to mp_(u)int_t. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Paul Sokolovsky 3b6f7b95eb py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT. 11 years ago
Paul Sokolovsky 0294661da5 parsenum: Signedness issues. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George d1e355ea8e py: Fix check of small-int overflow when parsing ints. 11 years ago
Damien George 503d611033 py: Implement long int parsing in int(...). 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Andrew Scheller f78cfaf8b5 Remove exception name from inside the exception message 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George 7b4b78bc33 py: Put back proper ValueError for badly parsed integers. 11 years ago
Damien George dfbafabf6f py: Improve mp_parse_num_integer; make it self contained. 11 years ago
Damien George 6e48f7fa85 py: Allow 'complex()' to take a string as first argument. 11 years ago
Damien George c06ea7abf2 py: Implement parsing of infinity and nan for floats. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 06201ff3d6 py: Implement bit-shift and not operations for mpz. 11 years ago
Damien George 2077397118 py: Put number parsing code together in parsenum.c. 11 years ago