Open
Description
I searched the documentation, and didn't find anything obvious for the following question:
If two rules both match and the lexeme they match is of the same length, which is chosen? I checked ocamllex and there
If several regular expressions match a prefix of the input, the “longest match” rule applies: the regular expression that matches the longest prefix of the input is selected. In case of tie, the regular expression that occurs earlier in the rule is selected.
Is that the case with sedlex ? Maybe I missed it in the documentation?
Metadata
Metadata
Assignees
Labels
No labels