File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Bouffier Java
2
- This convert Java source to AST representation.
2
+ This is a tool for converting Java source to AST representation.
3
3
4
4
AST file support the follow formats.
5
5
- yaml
6
6
- xml
7
7
8
8
## Usage
9
- ` BOUFFIER_JAVA_PROJECT_PATH ` : This contains Java sources and output AST files (default is ` /bouffier-java ` )
9
+ ### ` BOUFFIER_JAVA_PROJECT_PATH `
10
+ The specified directory contains Java sources and output AST files (default is ` /bouffier-java-project ` )
11
+
10
12
This directory should have the following composition.
11
13
12
14
``` bash
13
15
projects/
14
16
├── out
15
- │ └── {{AST file is output here}}
17
+ │ └── {{AST files will be outputed here}}
16
18
└── source
17
- └── {{There is Java sources}}
19
+ └── {{Java sources}}
18
20
```
19
21
20
22
So, you need to create a directory in this format and mount it.
21
23
22
- ` BOUFFIER_JAVA_FORMAT ` : the format of output AST file. (default is ` yaml ` )
24
+ ### ` BOUFFIER_JAVA_FORMAT `
25
+ The format of output AST file. (default is ` yaml ` )
26
+
27
+ You can choose the following format.
28
+
29
+ - yaml
30
+ - xml
31
+
32
+ ### Quick Start
33
+ Clone this repository and put java sources in ` /tests/resources/source ` .
34
+
35
+ Run by docker-compose.
23
36
24
- ### Example
25
37
``` bash
26
- $ docker run -e BOUFFIER_JAVA_FORMAT=xml -v {{your dir path}}:/bouffier-java taxio/bouffier-java
38
+ $ docker-compose -f docker-compose.sample.yml up
27
39
```
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public class Main {
28
28
29
29
static FormatType format ;
30
30
static Path projectPath ;
31
- static final String version = "v0.0.1 " ;
31
+ static final String version = "v0.1.0 " ;
32
32
33
33
public static void main (String [] args ) {
34
34
System .out .println ("---------------------------------------------------\n " );
You can’t perform that action at this time.
0 commit comments