Soufflé is a logic programming language inspired by Datalog. Soufflé was initially designed for static program analysis and since then, there have been many other applications written in the Soufflé language, including applications in reverse engineering, network analysis and data analytics.
This is a plugin adding basic smart features to the Soufflé language, using the Language Server Protocol.
For syntax highlighting refer to: https://marketplace.visualstudio.com/items?itemName=W4RH4WK.souffle-syntax
The user needs to set the JAVA_HOME variable in settings for the plugin to work properly.
-
Automatic reparsing when saving the file.
-
Syntax error reporting
- Integration with souffle-lint (If available on user system)
- Hover (Provide declaration info on hovers)
- Go to definition
- Go to Type Definition
- Autocomplete
- Signature Help
- Rename
- Find all references
- Find all rules for relation
- Generate .input/.output for relation
- Extract type
-
Snippets for fact / rule templates
-
Snippets for decl / comp generation
-
Deprecated code warning and quickfixes
-
Reformat documentation comments
- Document symbols
The user needs to have Java installed on their system.
To build the server jar file yourself just run ./gradlew jar
on the top level and the resulting jar will be under build/libs.
To run the server run java -jar
with the name of the generated jar file.
For the VS Code plugin run npm run package
and the resulting .js file will be under dist/extension.js
In libraries with heavy use of the C preprocessor macros, sometimes parsing fails giving a false syntax error.
Minor fix in type autocomplete suggestions
- Added primitive type list autocomplete
- Added relation data structure list
- Better type documentation (include super types)
- Added deprecated code warnings
- Added support for snippets
- fact / rule template
- decl / comp generation
- Added support for slow rules in souffle-lint
- Added support for many one-line // style comments.
- Added integration with souffle-lint.
- Added source code action to trigger souffle-lint
- Added code action to extract types
Added code actions for reformatting documentation comments.
Added code actions for generating .input/.output for relations.
Updated README
- Changed the grammar to be on par with Souffle.
- Added icon.
Initial release of Soufflé Datalog Language Server.