2017-07-11 20:29:54 -05:00
|
|
|
// Copyright 2017 Jeremy Wall <jeremy@marzhillstudios.com>
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2018-02-02 15:27:33 -06:00
|
|
|
// #![feature(trace_macros,log_syntax)]
|
2017-12-24 15:24:06 -05:00
|
|
|
|
2018-02-05 08:44:14 -06:00
|
|
|
//! # ucg, A universal configuration grammar.
|
2018-02-05 19:41:47 -06:00
|
|
|
//!
|
2019-01-04 10:16:57 -06:00
|
|
|
//! Language reference is at [https://ucg.marzhillstudios.com/reference](https://ucg.marzhillstudios.com/reference)
|
2018-03-15 19:08:33 -05:00
|
|
|
|
|
|
|
// The following is necessary to allow the macros in tokenizer and parse modules
|
|
|
|
// to succeed.
|
|
|
|
#![recursion_limit = "128"]
|
2017-05-05 22:33:25 -05:00
|
|
|
#[macro_use]
|
2018-11-05 21:34:12 -06:00
|
|
|
extern crate abortable_parser;
|
2019-01-05 14:27:49 -06:00
|
|
|
extern crate base64;
|
2019-01-07 19:27:29 -06:00
|
|
|
extern crate regex;
|
2018-02-04 16:08:30 -06:00
|
|
|
extern crate serde_json;
|
2018-08-25 18:38:44 -05:00
|
|
|
extern crate serde_yaml;
|
2018-08-14 16:10:25 -05:00
|
|
|
extern crate simple_error;
|
2018-11-16 13:23:29 -06:00
|
|
|
extern crate toml;
|
2019-01-18 19:58:57 -06:00
|
|
|
extern crate unicode_segmentation;
|
2018-12-10 21:25:10 -06:00
|
|
|
extern crate xml;
|
2017-05-05 22:33:25 -05:00
|
|
|
|
2017-09-23 11:19:45 -05:00
|
|
|
#[macro_use]
|
2017-08-12 14:48:28 -05:00
|
|
|
pub mod ast;
|
2018-02-02 15:27:33 -06:00
|
|
|
#[macro_use]
|
2017-10-02 21:32:06 -05:00
|
|
|
pub mod tokenizer;
|
2017-06-08 22:15:48 -05:00
|
|
|
pub mod build;
|
2017-11-15 22:41:55 -06:00
|
|
|
pub mod convert;
|
2017-12-09 10:02:45 -06:00
|
|
|
pub mod error;
|
2019-05-26 09:32:56 -05:00
|
|
|
pub mod io;
|
2018-11-05 21:34:12 -06:00
|
|
|
pub mod iter;
|
2018-05-14 21:34:38 -05:00
|
|
|
pub mod parse;
|
2017-12-09 10:02:45 -06:00
|
|
|
|
2018-12-06 12:23:52 -06:00
|
|
|
pub use crate::ast::Expression;
|
|
|
|
pub use crate::ast::Statement;
|
|
|
|
pub use crate::ast::Value;
|
2017-05-05 22:33:25 -05:00
|
|
|
|
2018-12-31 10:10:19 -06:00
|
|
|
pub use crate::build::FileBuilder;
|
2018-12-06 12:23:52 -06:00
|
|
|
pub use crate::build::Val;
|
|
|
|
pub use crate::parse::parse;
|