Permalink
Please sign in to comment.
Browse files
Rewrite ${//} with the libc regexec() API.
A new pylibc primitive: first_group_match() is used to implement the
four variants of ${//}.
We convert to ERE syntax instead of Python syntax.
- Make note of bugs in this conversion! (still need to fix)
- Remove dependencies on the 're' module! Yay.
Unrelated:
- Add a URL/comment to OPy's symbols.py module.
- Lint script functions- Loading branch information...
Showing
with
186 additions
and 60 deletions.
- +1 −1 build/dev.sh
- +23 −29 core/glob_.py
- +14 −3 core/glob_test.py
- +49 −12 core/libstr.py
- +23 −0 core/libstr_test.py
- +46 −1 native/libc.c
- +15 −13 native/libc_test.py
- +9 −1 opy/compiler2/symbols.py
- +6 −0 test/lint.sh
0 comments on commit
fc29443