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

emacs-lisp code for running SAW in emacs #1331

Merged
merged 2 commits into from
Jul 14, 2021

Conversation

msaaltink
Copy link
Contributor

Now that SAW does not exit after trivial errors, running it in a subprocess and sending inputs from a Sawscript file works quite well and is a nice way to develop proofs. This file complements saw-mode.el to provide functions to make this way of working easy. I've been using it for a few months and it seems pretty stable.

One issue I have not solved is in making emacs correctly recognize SAW forms, using syntax tables. It works pretty well but is thrown off by anything like "(x:[8])", where a parenthesis immediately follows a backslash. Adding a space after the backslash eliminates the problem, so it is not a killer. This is a problem I inherited from saw-mode.el.

Note: the term "inferior" is the standard emacs term for referring to a subprocess, as in "inferior-lisp-mode" or "inferior-haskell-mode", so I am not badmouthing saw in the name of this mode!

Copy link
Contributor

@robdockins robdockins left a comment

Choose a reason for hiding this comment

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

No real comments on the content of this, but I don't think this can break anything else, so LGTM.

@nano-o nano-o added the PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run label Jul 14, 2021
@mergify mergify bot merged commit 80b3825 into GaloisInc:master Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants