Commit Graph

39 Commits

Author SHA1 Message Date
Noah
3d9812e748 Remove remaining borrow_value() uses 2021-05-20 10:30:42 -05:00
Noah
d6e79fbbbf Replace PyInt.borrow_value() with .as_bigint() 2021-05-20 10:29:48 -05:00
Noah
516eead348 Replace PyStr.borrow_value() with .as_str() 2021-05-20 10:29:48 -05:00
Noah
99104faaf7 Re-export pyobject::* from the root of the crate 2021-05-20 10:24:07 -05:00
Kangzhi Shi
807acfeddd impl sre Pattern compare 2021-04-22 08:57:18 +02:00
Noah
631e17a630 Merge pull request #2576 from qingshi163/sreupdate
fix sre zerowidth search
2021-04-20 10:13:50 -05:00
Kangzhi Shi
7ab4e9573c fix sre zerowidth search 2021-04-20 10:21:16 +02:00
Kangzhi Shi
7085fed82c impl Pattern __repr__ 2021-04-19 09:15:17 +02:00
Noah
6c30bc10bc Extract the sre interpreter into a separate repo 2021-01-29 10:18:20 -06:00
Noah
0b68a8acd4 Remove TryFromObject for String impl 2021-01-24 15:31:42 -06:00
Kangzhi Shi
5794c46adf fix multiple bugs; pass tests 2021-01-22 16:40:33 +02:00
Kangzhi Shi
2a6bf6286a fix Match.group with __index__ 2021-01-21 19:45:00 +02:00
Kangzhi Shi
40b68fbea7 impl Pattern SubArgs with bytes 2021-01-21 15:51:51 +02:00
Kangzhi Shi
8d11e9e310 pass multiple tests 2021-01-20 17:30:23 +02:00
Kangzhi Shi
2e7f47a79e fix zero width repeat 2021-01-20 16:33:30 +02:00
Kangzhi Shi
a0ceadfb2a fix multiple bugs; skip crash tests 2021-01-20 08:29:58 +02:00
Kangzhi Shi
faf0aa6426 add bytes support and refactor 2021-01-20 08:29:58 +02:00
Kangzhi Shi
7ff6dcab9e impl Match.lastgroup 2021-01-20 08:29:58 +02:00
Kangzhi Shi
5e543b4524 impl Pattern.split 2021-01-20 08:29:58 +02:00
Kangzhi Shi
157e5b17ab impl Pattern.finditer 2021-01-20 08:29:58 +02:00
Kangzhi Shi
1b0a7c0a55 impl SRE_Scanner 2021-01-20 08:29:57 +02:00
Kangzhi Shi
5ca4e79eb5 impl Pattern.findall 2021-01-20 08:29:57 +02:00
Kangzhi Shi
ef7c296001 impl Match.groupdict 2021-01-20 08:29:57 +02:00
Kangzhi Shi
de7f07b354 impl Pattern.sub 2021-01-20 08:29:57 +02:00
Kangzhi Shi
99aaaf7dba impl Match.expand 2021-01-20 08:29:57 +02:00
Kangzhi Shi
3b549cb83e impl Match.__getitem__ 2021-01-20 08:29:57 +02:00
Kangzhi Shi
d812a94c68 fix Opcode::BIGCHARSET 2021-01-20 08:29:57 +02:00
Kangzhi Shi
080b417f1f impl Match.groups() 2021-01-20 08:29:57 +02:00
Kangzhi Shi
884f16cad0 rework OpMaxUntil; restruct popping context; add tests; 2021-01-20 08:29:57 +02:00
Kangzhi Shi
f021e6ad65 impl Match.group 2021-01-20 08:29:57 +02:00
Kangzhi Shi
963af86935 impl re.Match object 2021-01-20 08:29:57 +02:00
Kangzhi Shi
b24f69739e general case for count 2021-01-20 08:29:57 +02:00
Kangzhi Shi
dbc54e5725 Impl OpRepeatONe 2021-01-20 08:29:57 +02:00
Kangzhi Shi
76b5093835 impl Pattern.fullmatch, Pattern.search 2021-01-20 08:29:57 +02:00
Kangzhi Shi
3f2640971a create _sre.Match 2021-01-20 08:29:57 +02:00
Kangzhi Shi
22278e1e88 upgrade sre_parse.py; impl marks count 2021-01-20 08:29:56 +02:00
Kangzhi Shi
67074c1dc3 upgrade re version; implement helper functions; 2021-01-20 08:29:56 +02:00
Kangzhi Shi
344afc96ce WIP structure 2021-01-20 08:29:56 +02:00
Noah
3b875291ee WIP - native _sre 2021-01-20 08:29:56 +02:00