summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-08-08 18:43:57 +0300
committerLars Wirzenius <liw@liw.fi>2020-08-08 20:47:22 +0300
commitd1651321ec1cd1e02fb93fe6e31ab4de115356c9 (patch)
treef5966966f0cb910659a62afa63c7f089913e9937 /src/lib.rs
parentc3e8c88f3294338e8ea4678fb5493c96150a4e3c (diff)
downloadsubplot-d1651321ec1cd1e02fb93fe6e31ab4de115356c9.tar.gz
refactor: split stuff from src/ast.rs into smaller modules
This only moves things around, to avoid huge source code modules. It doesn't rename functions, add unit tests, or similar. * src/datafiles.rs: DataFile, DataFiles * src/metata.rs: Metadata * src/panhelper.rs: functions for querying Pandoc Attrs * src/policy.rs: the get_basedir_from function; place for later policy functions * src/typeset.rs: functions to produce Pandoc AST nodes * srv/visitor/*: various MutVisitor implementations for traversing ASTs, and their helper functions
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c2a2ec7..842a264 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,9 +12,23 @@ pub use error::SubplotError;
mod graphmarkup;
pub use graphmarkup::{DotMarkup, GraphMarkup, PlantumlMarkup};
+mod datafiles;
+pub use datafiles::DataFile;
+pub use datafiles::DataFiles;
+
+mod panhelper;
+mod typeset;
+
+mod visitor;
+use visitor::LintingVisitor;
+
+mod policy;
+pub use policy::get_basedir_from;
+
+mod metadata;
+pub use metadata::Metadata;
+
mod ast;
-pub use ast::get_basedir_from;
-pub use ast::DataFile;
pub use ast::Document;
mod scenarios;