ucglib/lib.rs
1// Copyright 2017 Jeremy Wall <jeremy@marzhillstudios.com>
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14// #![feature(trace_macros,log_syntax)]
15
16//! # ucg, A universal configuration grammar.
17//!
18//! Language reference is at [https://ucg.marzhillstudios.com/reference](https://ucg.marzhillstudios.com/reference)
19
20// The following is necessary to allow the macros in tokenizer and parse modules
21// to succeed.
22#![recursion_limit = "128"]
23#[macro_use]
24extern crate abortable_parser;
25extern crate base64;
26extern crate regex;
27extern crate serde_json;
28extern crate serde_yaml;
29extern crate simple_error;
30extern crate toml;
31extern crate unicode_segmentation;
32extern crate xml;
33
34#[macro_use]
35pub mod ast;
36#[macro_use]
37pub mod tokenizer;
38pub mod build;
39pub mod convert;
40pub mod error;
41pub mod io;
42pub mod iter;
43pub mod parse;
44
45pub use crate::ast::Expression;
46pub use crate::ast::Statement;
47pub use crate::ast::Value;
48
49pub use crate::build::FileBuilder;
50pub use crate::build::Val;
51pub use crate::parse::parse;