|
|
3 лет назад | |
|---|---|---|
| .. | ||
| src | 3 лет назад | |
| README.md | 4 лет назад | |
| pom.xml | 4 лет назад | |
The JPlag Swift frontend allows the use of JPlag with submissions in Swift.
It is based on the Swift ANTLR4 grammar, licensed under the Apache 2.0.
The underlying grammar definition is based on Swift 5.4.
If there are any major updates or fixes to the grammar1, they should surely be applied to this module as well.
The choice of tokens is intended to be similar to the Java or C# frontends. It includes a range of nesting structures (class, method, control flow expressions) as well as variable declaration, object creation, assignment, and control flow altering keywords.
To use the Swift frontend, add the -l swift flag in the CLI, or use a JPlagOption object set to LanguageOption.SWIFT in the Java API as described in the usage information in the readme of the main project and in the wiki.