diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-08-08 18:43:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-08-08 20:47:22 +0300 |
commit | d1651321ec1cd1e02fb93fe6e31ab4de115356c9 (patch) | |
tree | f5966966f0cb910659a62afa63c7f089913e9937 /src/lib.rs | |
parent | c3e8c88f3294338e8ea4678fb5493c96150a4e3c (diff) | |
download | subplot-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.rs | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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; |