-
Notifications
You must be signed in to change notification settings - Fork 0
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
Only find one match per position #1
Comments
Thanks for your kind words! I haven’t had much time recently to continue implementing a few more features I had in mind, and especially document a few things! (But I’m definitely planning to!)
I see multiple uses of the token within the pattern. Did you instead mean to use a back-reference, which matches a subsequence that a previous token matched? The read-me mentions
However, |
Hi, and sorry about the very late reply. I liked the syntax in this project so much I implemented something similar in my PEG parser at https://github.com/kareman/Patterns . It made the API far easier to work with (as soon as you find out how to type • and ¿ 😄) . |
Looks nice, especially its strong typing and its VM approach! 💯 |
Hi, nice library, I especially like the syntax.
Is there any way of parsing only one match per position? Now when I run code like this:
it seems to find all possible matches for each position:
How do I tell
LazilyRepeating
to only find the shortest possible match?The text was updated successfully, but these errors were encountered: