You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Visual Studio Code Plugin](https://marketplace.visualstudio.com/items?itemName=samt.samt)
26
27
27
28
### Advanced
@@ -31,31 +32,24 @@ Get started with SAMT, learn fundamental concepts or extend SAMT with a custom g
31
32
32
33
## Development Setup
33
34
34
-
SAMT is written in [Kotlin](https://kotlinlang.org/) and uses [Gradle](https://gradle.org/) as a build tool, for the best developer experience we recommend using [IntelliJ](https://www.jetbrains.com/idea/).
35
+
SAMT is written in [Kotlin](https://kotlinlang.org/) and uses [Gradle](https://gradle.org/) as a build tool,
36
+
for the best developer experience we recommend using [IntelliJ IDEA](https://www.jetbrains.com/idea/).
35
37
36
38
If you want to start SAMT locally, simply clone the repository and compile it using Gradle:
37
39
38
40
```shell
39
41
./gradlew assemble
40
42
```
41
43
42
-
You can also compile the CLI module locally:
44
+
And then use this locally compiled SAMT to compile your SAMT files:
If you're more interested in the [SAMT Visual Studio Code plugin](https://github.com/samtkit/vscode) or the related language server, you can also compile it locally as well:
55
-
56
-
```shell
57
-
./gradlew :language-server:shadowJar
58
-
```
50
+
If you are interested in learning about the functionality and operation of the [SAMT Visual Studio Code Plugin](https://github.com/samtkit/vscode)
51
+
or methods for running and debugging the related language server on your local machine,
52
+
related documentation is available in the [SAMT VS Code Wiki](https://github.com/samtkit/vscode/wiki).
@Parameter(names = ["-h", "--help"], description ="Display help", help =true)
7
8
var help:Boolean=false
9
+
}
10
+
11
+
@Parameters(commandDescription ="Compile SAMT files")
12
+
classCompileCommand {
13
+
@Parameter(description ="Files to compile, defaults to all .samt files in the current directory")
14
+
var files:List<String> =mutableListOf()
15
+
}
16
+
17
+
@Parameters(commandDescription ="Dump SAMT files in various formats for debugging purposes")
18
+
classDumpCommand {
19
+
@Parameter(names = ["--tokens"], description ="Dump a visual representation of the token stream")
20
+
var dumpTokens:Boolean=false
8
21
9
-
@Parameter(names = ["--dump-ast"], description ="Dump a visual representation of the AST", help =true)
22
+
@Parameter(names = ["--ast"], description ="Dump a visual representation of the AST")
10
23
var dumpAst:Boolean=false
11
24
12
-
@Parameter(description ="Files")
25
+
@Parameter(names = ["--types"], description ="Dump a visual representation of the resolved types")
26
+
var dumpTypes:Boolean=false
27
+
28
+
@Parameter(description ="Files to dump, defaults to all .samt files in the current directory")
13
29
var files:List<String> =mutableListOf()
14
30
}
31
+
32
+
@Parameters(commandDescription ="Initialize or update the SAMT wrapper")
33
+
classWrapperCommand {
34
+
@Parameter(names = ["--version"], description ="The SAMT version to use, defaults to the latest version published on GitHub")
35
+
var version:String="latest"
36
+
37
+
@Parameter(names = ["--version-source"], description ="The location from where the latest version will be fetched from, defaults to the GitHub API. The result must be a JSON object with a 'tag_name' field containing the version string")
38
+
var latestVersionSource:String="https://api.github.com/repos/samtkit/core/releases/latest"
39
+
40
+
@Parameter(names = ["--init"], description ="Downloads all required files and initializes the SAMT wrapper")
41
+
varinit:Boolean=false
42
+
43
+
@Parameter(names = ["--init-source"], description ="The location from where the initial 'samtw', 'samtw.bat' and 'samt-wrapper.properties' will be downloaded from")
44
+
var initSource:String="https://raw.githubusercontent.com/samtkit/core/main/wrapper"
0 commit comments