Skip to content

ixinglan/nginx-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx configuration Java parser

Introduction

Fork from https://github.com/odiszapc/nginx-java-parser;

Parses Nginx configuration files with Antlr 4 grammar(upgrade to antlr4.12.0)

    <dependency>
        <groupId>org.antlr</groupId>
        <artifactId>antlr4-runtime</artifactId>
        <version>4.12.0</version>
    </dependency>

Fix some bugs:

  • if block parse error
  • comment parse error
  • support remove if block
  • support find if block
  • ...

Usage method

you can use by maven dependency

    <dependency>
        <groupId>io.github.ixinglan</groupId>
        <artifactId>nginx-parser</artifactId>
        <version>1.0.0</version>
    </dependency>

Authors

zhaojq

License

Apache 2.0

About

Parses Nginx configuration files with Antlr 4 grammar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages