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

Quoted symbols and printing for smtlib-related languages #198

Merged
merged 6 commits into from
Nov 13, 2023
Merged

Quoted symbols and printing for smtlib-related languages #198

merged 6 commits into from
Nov 13, 2023

Conversation

Gbury
Copy link
Owner

@Gbury Gbury commented Oct 31, 2023

This PR does a few things:

  • it adds printing functions for identifiers for smtlib2.6 and psmt2
  • it accepts quoted reserved words as symbols instead of reserved words, allowing declarations such as
(declare-fun |assert| () Bool)

Will close #196

Copy link
Contributor

@bclement-ocp bclement-ocp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I linked this PR somewhere but still forgot to look at it.

I think this fits what we need on the Alt-Ergo side :)
It is unfortunate that the Print modules for smt and psmt can't be shared…

src/languages/smtlib2/poly/lexer.mll Show resolved Hide resolved
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.

Quoted identifiers can be keywords
2 participants