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

Zach/ast changes #36

Closed
wants to merge 5 commits into from
Closed

Zach/ast changes #36

wants to merge 5 commits into from

Conversation

ZachJHansen
Copy link
Collaborator

In working with first-order specs I've found it useful to have a Predicate node of the form "p/n" indicating a predicate p of arity n. Similarly for ASP, while working with completion results it is useful to have a symmetric Predicate node. The way Atoms (in both ASTs) are currently parsed and formatted, we omit the "/n" (arity information). I think this is the right choice, although technically writing "p(t1,t2)" is syntax sugar for "p/2(t1,t2)" which I think provides a theoretical justification for having Predicate behind the scenes.

@ZachJHansen ZachJHansen closed this Dec 8, 2023
@ZachJHansen ZachJHansen deleted the zach/ast_changes branch December 19, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant