Skip to content

Commit 5769e5d

Browse files
committed
[maven-release-plugin] prepare release v1.12.0
1 parent ac4540c commit 5769e5d

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

README.md

+28-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ while introducing support for those that were completely absent from the origina
99
Highlights include:
1010

1111
- Incremental abstract syntax tree edits
12+
- Parser and lexer debugging through loggers
1213
- APIs for querying parsed abstract syntax trees
1314
- Support for both macOS and Linux out of the box
1415
- A wide range of languages [supported](.gitmodules) out of the box
@@ -51,10 +52,10 @@ For it to work, you must have the following installed:
5152

5253
| Dependency | Version |
5354
|:-----------|--------:|
54-
| Java | 11+ |
55-
| Maven | 3.9+ |
56-
| Python | 3.9 |
57-
| Docker | 23+ |
55+
| Java | 11 |
56+
| Maven | 3.9 |
57+
| Python | 3.10 |
58+
| Docker | 23 |
5859

5960
## Adding dependency to project
6061

@@ -64,7 +65,7 @@ To use in your own Maven project, include the following in your POM file:
6465
<dependency>
6566
<groupId>ch.usi.si.seart</groupId>
6667
<artifactId>java-tree-sitter</artifactId>
67-
<version>1.11.0</version>
68+
<version>1.12.0</version>
6869
</dependency>
6970
```
7071

@@ -205,5 +206,27 @@ public class Example {
205206
}
206207
```
207208

209+
If you would like to debug the parsing process, you can attach loggers directly to a `Parser`:
210+
211+
```java
212+
import ch.usi.si.seart.treesitter.*;
213+
import org.slf4j.*;
214+
215+
public class Example {
216+
217+
// init omitted...
218+
219+
public static void main(String[] args) {
220+
Logger logger = LoggerFactory.getLogger(Example.class);
221+
try (Parser parser = Parser.getFor(Language.PYTHON)) {
222+
parser.setLogger(logger);
223+
parser.parse("pass").close();
224+
} catch (Exception ex) {
225+
// ...
226+
}
227+
}
228+
}
229+
```
230+
208231
For more usage examples, take a look at the [tests](src/test/java/ch/usi/si/seart/treesitter).
209232
You can also refer to the full documentation [here](https://javadoc.io/doc/ch.usi.si.seart/java-tree-sitter/latest/index.html).

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>ch.usi.si.seart</groupId>
66
<artifactId>java-tree-sitter</artifactId>
7-
<version>1.12.0-SNAPSHOT</version>
7+
<version>1.12.0</version>
88

99
<name>${project.groupId}:${project.artifactId}</name>
1010
<description>Java bindings for tree-sitter</description>
@@ -56,7 +56,7 @@
5656
</contributors>
5757

5858
<scm>
59-
<tag>HEAD</tag>
59+
<tag>v1.12.0</tag>
6060
<url>https://github.com/seart-group/java-tree-sitter/tree/master</url>
6161
<connection>scm:git:https://github.com/seart-group/java-tree-sitter.git</connection>
6262
<developerConnection>scm:git:git@github.com:seart-group/java-tree-sitter.git</developerConnection>

0 commit comments

Comments
 (0)