-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
I'm currently considering taking a second look at tyre, and that involves writing a ppx for it. ppx_regexp does, as far as I'm concerned, many things right and I agree with the goal to make it accessible.
So I'm considering simply extending it. That involves two things:
- Modifying the typing rules to return
_ listfor groups under repetitions and`Left of _ | `Right of _for groups under alternatives. See if the result is sufficiently usable, and maybe modify Tyre so that it is. - Figuring out composition.
Now, I recently got a decent idea for 2: Reuse the syntax for recursion into named groups from PCRE2. (?&potato) would simply use the (typed) regular expression named potato. This would also allow to have more primitive datatypes, for example (?&int).
What do you think? Do you want to join forces? :)
Metadata
Metadata
Assignees
Labels
No labels