Skip to content

Commit

Permalink
[maven-release-plugin] prepare release v1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Feb 15, 2024
1 parent ac4540c commit 5769e5d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ while introducing support for those that were completely absent from the origina
Highlights include:

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

| Dependency | Version |
|:-----------|--------:|
| Java | 11+ |
| Maven | 3.9+ |
| Python | 3.9 |
| Docker | 23+ |
| Java | 11 |
| Maven | 3.9 |
| Python | 3.10 |
| Docker | 23 |

## Adding dependency to project

Expand All @@ -64,7 +65,7 @@ To use in your own Maven project, include the following in your POM file:
<dependency>
<groupId>ch.usi.si.seart</groupId>
<artifactId>java-tree-sitter</artifactId>
<version>1.11.0</version>
<version>1.12.0</version>
</dependency>
```

Expand Down Expand Up @@ -205,5 +206,27 @@ public class Example {
}
```

If you would like to debug the parsing process, you can attach loggers directly to a `Parser`:

```java
import ch.usi.si.seart.treesitter.*;
import org.slf4j.*;

public class Example {

// init omitted...

public static void main(String[] args) {
Logger logger = LoggerFactory.getLogger(Example.class);
try (Parser parser = Parser.getFor(Language.PYTHON)) {
parser.setLogger(logger);
parser.parse("pass").close();
} catch (Exception ex) {
// ...
}
}
}
```

For more usage examples, take a look at the [tests](src/test/java/ch/usi/si/seart/treesitter).
You can also refer to the full documentation [here](https://javadoc.io/doc/ch.usi.si.seart/java-tree-sitter/latest/index.html).
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>ch.usi.si.seart</groupId>
<artifactId>java-tree-sitter</artifactId>
<version>1.12.0-SNAPSHOT</version>
<version>1.12.0</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>Java bindings for tree-sitter</description>
Expand Down Expand Up @@ -56,7 +56,7 @@
</contributors>

<scm>
<tag>HEAD</tag>
<tag>v1.12.0</tag>
<url>https://github.com/seart-group/java-tree-sitter/tree/master</url>
<connection>scm:git:https://github.com/seart-group/java-tree-sitter.git</connection>
<developerConnection>scm:git:git@github.com:seart-group/java-tree-sitter.git</developerConnection>
Expand Down

0 comments on commit 5769e5d

Please # to comment.