1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//! Nginx Config Parser (unofficial)
//! ================================
//!
//! This library contains parser and formatter of nginx config format
//! as well as AST types and visitors.
//!
//! [Docs](https://docs.rs/nginx-config/) |
//! [Github](https://github.com/tailhook/nginx-config/) |
//! [Crate](https://crates.io/crates/nginx-config)
//!
#![warn(missing_debug_implementations)]
#![warn(missing_docs)]

extern crate combine;
#[macro_use] extern crate failure;
#[macro_use] extern crate matches;
#[cfg(test)] #[macro_use] extern crate pretty_assertions;

pub mod ast;
mod display;
mod error;
mod format;
mod grammar;
mod gzip;
mod helpers;
mod position;
mod proxy;
mod tokenizer;
mod value;
pub mod visitors;

pub use grammar::{parse_main, parse_directives};
pub use format::Style;
pub use error::ParseError;