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

PatSegment (AKA slotvars in SymbolicUtils.jl) not implemented for new classical rewriting module. #72

Closed
0x0f0f0f opened this issue Sep 5, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@0x0f0f0f
Copy link
Member

0x0f0f0f commented Sep 5, 2021

f(a...) => g(2, a...) doesn't match in classical rewriting

more detailed example:

using Metatheory
r = @rule f(a...) => g(2, a...)
r(:(f(1,2,3))) # should return :(g(2, 1, 2, 3))

Requires a bit of work. Maybe SymbolicUtils.jl and Metatheory.jl can have the same pattern matcher for classical rewriting?

@0x0f0f0f 0x0f0f0f added the help wanted Extra attention is needed label Sep 5, 2021
@0x0f0f0f
Copy link
Member Author

0x0f0f0f commented Apr 1, 2022

Done in latest commit

@0x0f0f0f 0x0f0f0f changed the title PatSplatVar (AKA slotvars in SymbolicUtils.jl) not implemented for new classical rewriting module. PatSegment (AKA slotvars in SymbolicUtils.jl) not implemented for new classical rewriting module. Apr 1, 2022
@0x0f0f0f 0x0f0f0f closed this as completed Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant