File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Nginx configuration Java parser
2
2
3
3
#### Features
4
- - Convert config file to AST tree using JavaCC parsing capabilities
5
- - Build config files from scratch and serialize them
4
+ - Convert config file to AST tree using Antlr parsing capabilities
5
+ - The same is available for JavaCC too (deprecated)
6
+ - Rebuild config files and dump them back to * .conf
7
+ - Nested blocks support
8
+ - If statements support
9
+ - Unquoted regexp within location/rewrite/if statements support
6
10
- Comments support
7
11
12
+ #### Installation
13
+ Add the following dependency to your POM:
14
+ ``` xml
15
+ <dependency >
16
+ <groupId >com.github.odiszapc</groupId >
17
+ <artifactId >nginxparser</artifactId >
18
+ <version >0.9.0</version >
19
+ </dependency >
20
+ ```
21
+
8
22
#### Examples
9
23
##### Parser
10
24
@@ -57,3 +71,8 @@ NgxDumper dumper = new NgxDumper(conf);
57
71
return dumper. dump(System . out);
58
72
```
59
73
74
+ #### Authors
75
+ Alexey Plotnik (
[email protected] ,
http://twitter.com/odiszapc ) I do it just because I like it.
76
+
77
+ #### License
78
+ Apache 2.0
You can’t perform that action at this time.
0 commit comments