summaryrefslogtreecommitdiff
path: root/extmod/re1.5/compilecode.c
AgeCommit message (Collapse)Author
2021-07-12lib/re1.5: Move re1.5 code from extmod to lib.Damien George
It's third-party code, and not necessarily tied to extmod. Signed-off-by: Damien George <damien@micropython.org>
2021-04-06extmod/re1.5: Check and report byte overflow errors in _compilecode.Jeff Epler
The generated regex code is limited in the range of jumps and counts, and this commit checks all cases which can overflow given the right kind of input regex, and returns an error in such a case. This change assumes that the results that overflow an int8_t do not overflow a platform int. Closes: #7078 Signed-off-by: Jeff Epler <jepler@gmail.com>
2020-10-22py, extmod: Introduce and use MP_FALLTHROUGH macro.Emil Renner Berthing
Newer GCC versions are able to warn about switch cases that fall through. This is usually a sign of a forgotten break statement, but in the few cases where a fall through is intended we annotate it with this macro to avoid the warning.
2019-10-18extmod/re1.5: Support escaping within RE classes.Jim Mussared
Fixes issues #3178 and #5220. Tests are added, including all the cases mentioned in both bugs.
2018-04-10extmod/re1.5: Fix compilecode.c compile problem on IAR tool chain.armink
The 2nd and 3rd args of the ternary operator are treated like they are in the same expression and must have similar types. void is not compatible with int so that's why the compiler is complaining.
2017-09-24extmod/re1.5: Update to 0.8.1.Paul Sokolovsky
Allow literal minus in char classes to be in trailing position, e.g. [a-c-]. (Previously, minus was allowed only at the start.) This increases ARM Thumb2 code size by 8 bytes.
2015-11-01extmod/re1.5: Workaround issue with mingw32-gcc 4.2.1.Paul Sokolovsky
2015-11-01extmod/re1.5: Update to 0.8.Paul Sokolovsky
Contains implementation of ?: (non-capturing groups), ?? (non-greedy ?), as well as much improved robustness, and edge cases and error handling by Amir Plivatsky (@ampli).
2015-03-18extmod: Update re1.5 to 0.7.Paul Sokolovsky
Includes static function fix and all the previous improvements and fixes by @dpgeorge.
2015-03-10extmod: Pull in upstream changes to re1.5; fixes bugs with regex errors.Damien George
2015-02-21extmod: Pull in upstream changes to re1.5; fixes bug, adds named class.Damien George
2014-10-17modure: Update to re1.5 v0.6.1, fixed and extended character class support.Paul Sokolovsky
2014-10-15modure: Update to re1.5 v0.6, support for char sets/classes ([a-c]).Paul Sokolovsky
2014-10-11modure: Import needed files from re1.5 v0.5.Paul Sokolovsky
https://github.com/pfalcon/re1.5