Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named capture groups #5

Open
whitequark opened this issue Jun 24, 2014 · 9 comments · May be fixed by #112
Open

Named capture groups #5

whitequark opened this issue Jun 24, 2014 · 9 comments · May be fixed by #112

Comments

@whitequark
Copy link
Contributor

A major thing that ulex is missing is named capture groups, i.e. (Plus '0'..'9') as digits syntax. Sedlex misses it, too; asking the user to manually calculate the indexes is absurd.

@hhugo
Copy link
Contributor

hhugo commented Aug 21, 2014

👍

@zoggy
Copy link

zoggy commented Feb 19, 2015

👍

1 similar comment
@eyyub
Copy link

eyyub commented Jul 20, 2015

👍

@darioteixeira
Copy link

I've just came across this problem. And I agree, having to reprocess the whole matched lexeme with OCaml-re to fetch the individual groups is a bit ridiculous...

@toots
Copy link
Member

toots commented Mar 15, 2017

Same here. This is a major blocker to move to sedlex. Will not consider it until this has been implement.. :-(

@whitequark
Copy link
Contributor Author

Essentially, if you want it, implement it. At this point sedlex is not really maintained.

@nadako
Copy link

nadako commented May 12, 2017

At this point sedlex is not really maintained.

That's a sad thing to hear. Is there any successor library?

@whitequark
Copy link
Contributor Author

Not really.

@pmetzger
Copy link
Member

pmetzger commented Oct 8, 2017

This is very sad to hear indeed! (And let me second, for whomever may show up, the need for named capture groups.)

@hhugo hhugo mentioned this issue Aug 12, 2021
@dyzsr dyzsr linked a pull request Sep 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants