Replies: 1 comment
-
Seems like you fixed it! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a slightly difficult use case of egg and I'm not quite getting it right.This is the error:
As I've understood it, the pattern matches on something and then the substitution generated doesn't include substitutions for all of the variables in the pattern.
My applier merely checks if the substitution is valid and then forwards the application to a Pattern. It doesn't change the substitution found in any way. The searcher is also a Pattern.
How could my error occur? All the pattern matching and application is in the end handled by the Pattern struct?
Edit:
The error is probably the other way around? That the substitution includes variables not present in the search pattern which probably happens due to me incorrectly parsing the expressions into patterns?
Edit 2:
Nope, parsing is correct and it probably isn't the other way around. But for some reason it still doesn't work. Could someone explain the error message?
Edit 3:
There was indeed an parse error.
Forgot to add the head node when parsing
Beta Was this translation helpful? Give feedback.
All reactions