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

Metaprogramming and syntax checking... #7

Open
rpgoldman opened this issue Apr 4, 2019 · 0 comments
Open

Metaprogramming and syntax checking... #7

rpgoldman opened this issue Apr 4, 2019 · 0 comments

Comments

@rpgoldman
Copy link
Contributor

I added a tentative check for ill-formed add and delete lists, but it fails the tests because of operators like these:

 (:op (!!assert ?fact)
  :add (?fact))

 (:op (!!delete ?fact)
  :delete (?fact))

These are from the Openstacks domain, but there are many like it.

I can think of at least a couple of possibilities:

  1. Make !!assert and !!delete (and also = for "unifies") be built-ins.
  2. Add some kind of meta-op declaration to tell SHOP that it shouldn't check the preconditions, add- or delete-lists for proper syntax. This could be as simple as permitting :meta t to appear in the body of an :op definition.

I'd like to find a solution, so that we can be more aggressive in checking for ill-formed operators.

/cc @ukuter

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

No branches or pull requests

1 participant