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

Pattern matching failture with simple slurps #33

Open
fcard opened this issue Mar 8, 2017 · 3 comments
Open

Pattern matching failture with simple slurps #33

fcard opened this issue Mar 8, 2017 · 3 comments
Milestone

Comments

@fcard
Copy link
Owner

fcard commented Mar 8, 2017

julia> @letds [*{x}, a, *{y}, 10] = :[1,2,3,4,5,6,7,8,9,10] (x,y)
ERROR: ArgumentError: pattern`([(:*){x}, a, (:*){y}, 10],)` cannot be matched with ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],)

What the! I was sure those sort of simple things were working before. How am I to brag about having a Regex for Exprs when I can't even do this! Hmm, Regex for Exprs, maybe I should branch that off in its own package, that could interest people more. (it won't) MetaRegex.jl, that surely will catch some eyes. (pffffff)

Also, slurp, what a word to keep saying over and over. Once more I blame it all on Mike Innes, he introduced me to the term! Curse you Mike Innes for making me uncomfortable discussing my package with myself! (moreso!)

@fcard
Copy link
Owner Author

fcard commented Mar 8, 2017

Related to GenericGreedySlurp followed by another slurp, hmhm. It's probably not wanting to backtrack when it should.

...
God that code is a mess, I will have to resolve THAT before fixing this. I am getting into issue dependency hell here...

@fcard fcard added this to the 0.6.0 milestone Mar 10, 2017
@Qiyamah
Copy link

Qiyamah commented Aug 25, 2017

Do you have an estimate for solving the problem? Because I had a very similar package doing regex on expr with trees and state machines, now i am planning to abandon it and use yours.

@fcard
Copy link
Owner Author

fcard commented Aug 25, 2017

I have a solution in mind and a good chunk of the code done. I don't have an exact estimate but there shouldn't be too much work left, I just need to find the time to finish it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants