Named capture groups
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.
:+1:
:+1:
:+1:
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...
Same here. This is a major blocker to move to sedlex. Will not consider it until this has been implement.. :-(
Essentially, if you want it, implement it. At this point sedlex is not really maintained.
At this point sedlex is not really maintained.
That's a sad thing to hear. Is there any successor library?
Not really.
This is very sad to hear indeed! (And let me second, for whomever may show up, the need for named capture groups.)