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

Non-tree patterns #7

Open
toivoh opened this issue Jan 5, 2013 · 0 comments
Open

Non-tree patterns #7

toivoh opened this issue Jan 5, 2013 · 0 comments

Comments

@toivoh
Copy link
Owner

toivoh commented Jan 5, 2013

When the same pattern variable is repeated within a signature, e.g.

@pattern egal(x, x) = true
@pattern egal(x, y) = false

the pattern should require all occurrences to match the same value.

This should probably be accomplished by joining all the bound nodes into the same egal-equivalence class. This will require

  • Pattern simplification driven by equivalence classes: alternate merging and simplification until reaching
    a fixed point.
  • Nodes that have more than one argument node; at least for equivalence classes.
  • Pattern printing:
    • support for DAG structures
    • name unnamed nodes with multiple references
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

1 participant