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

Java front-end prototype #5702

Draft
wants to merge 86 commits into
base: master
Choose a base branch
from

Conversation

keyboardDrummer
Copy link
Member

@keyboardDrummer keyboardDrummer commented Aug 15, 2024

Prototype for adding a front-end for an extension of Java that supports verification.

The file JavaGrammar.cs contains the currently partial definition of the extended Java.

The new project CompilerBuilder contains a DSL for defining grammars from which parsers and printers can be extracted. It still needs work to polish the API and it needs a cache to improve backtracking performance.

ProgramParser.cs has been adopted so it calls the Java parser instead of the Dafny parser, based on the file extension.

There are small changes to the DafnyLanguageServer project to indicate that it also support this extensions java language.

There are small changes to the Dafny AST to accommodate how the grammar DSL currently works, but I expect to make this unnecessary

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

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