Expose the parser module instead of re-exporting all of its contents.
This commit is contained in:
parent
8420af7f1d
commit
2d4a592846
2
build.rs
2
build.rs
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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::*;
|
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user