-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate execution and compilation code of back-ends (#3407)
This is a refactoring that separates translation from Dafny to a string in a particular language, from other language specific tasks, such as running a program in that language or building a native executable artifact for that language. While I think this refactoring is good on its own, the main driver for it is to enable another refactoring. I'd like to extract logic that doesn't relate to string manipulation out of `SinglePassCompiler` by moving it to a base class, so that this logic can be reused when compiling Dafny to an AST (as opposed to compiling to a string or concrete syntax tree). This PR removes the base class from `SinglePassCompiler`, freeing it up to have another base class to which logic can be extracted. <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
- Loading branch information
1 parent
5bd9203
commit acb7991
Showing
28 changed files
with
1,096 additions
and
954 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.