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

Ast with logic variable as type does not return all possible results #1

Open
ReinoutStevens opened this issue Dec 4, 2013 · 0 comments
Assignees
Labels

Comments

@ReinoutStevens
Copy link
Collaborator

The following code returns the symbols of the concrete classes of a node, but does not include the parent classes:

(l/run* [?type] (l/fresh [?node] (reification/ast ?type ?node)))

As a result we are missing solutions, eg:

(l/run* [?type] (l/fresh [?node] (reification/ast :ASTNode ?node)))

This leads to problems when you write the following code:

(l/run* [?type] 
    (l/fresh [?a-node ?another-node]
             (reification/ast ?type ?a-node)
             (reification/ast ?type ?another-node)))

It is missing solutions, eg:

(l/run* [?type] 
       (l/fresh [?a-node ?another-node]
                (reification/ast :ASTNode ?a-node)
                (reification/ast :ASTNode ?another-node)))
@ghost ghost assigned cderoove Dec 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants