Expose the parser module instead of re-exporting all of its contents.

This commit is contained in:
Tom Alexander 2023-04-21 18:57:38 -04:00
parent 8420af7f1d
commit 2d4a592846
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 4 additions and 6 deletions

View File

@ -59,7 +59,7 @@ fn write_header(test_file: &mut File) {
r#" r#"
#[feature(exit_status_error)] #[feature(exit_status_error)]
use organic::compare_document; use organic::compare_document;
use organic::document; use organic::parser::document;
use organic::emacs_parse_org_document; use organic::emacs_parse_org_document;
use organic::sexp; use organic::sexp;

View File

@ -6,6 +6,7 @@ use crate::parser::CommentBlock;
use crate::parser::Document; use crate::parser::Document;
use crate::parser::DocumentElement; use crate::parser::DocumentElement;
use crate::parser::Drawer; use crate::parser::Drawer;
use crate::parser::DynamicBlock;
use crate::parser::Element; use crate::parser::Element;
use crate::parser::ExampleBlock; use crate::parser::ExampleBlock;
use crate::parser::ExportBlock; use crate::parser::ExportBlock;
@ -22,7 +23,6 @@ use crate::parser::Table;
use crate::parser::TableCell; use crate::parser::TableCell;
use crate::parser::TableRow; use crate::parser::TableRow;
use crate::parser::VerseBlock; use crate::parser::VerseBlock;
use crate::DynamicBlock;
#[derive(Debug)] #[derive(Debug)]
pub struct DiffResult { pub struct DiffResult {

View File

@ -11,6 +11,4 @@ pub use compare::emacs_parse_org_document;
pub use compare::sexp; pub use compare::sexp;
mod error; mod error;
mod parser; pub mod parser;
pub use parser::*;

View File

@ -1,7 +1,7 @@
#![feature(round_char_boundary)] #![feature(round_char_boundary)]
use crate::init_tracing::init_telemetry; use crate::init_tracing::init_telemetry;
use crate::init_tracing::shutdown_telemetry; use crate::init_tracing::shutdown_telemetry;
use ::organic::document; use ::organic::parser::document;
mod init_tracing; mod init_tracing;
const TEST_DOC: &'static str = include_str!("../toy_language.txt"); const TEST_DOC: &'static str = include_str!("../toy_language.txt");