From d14b4705308ce8e4e537d836d0ca55d0586f88a8 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Fri, 21 Oct 2022 19:26:00 -0700 Subject: [PATCH] Reorganize module structure --- src/{choice.rs => choice/mod.rs} | 0 src/{combinators.rs => combinators/mod.rs} | 0 src/lib.rs | 9 ++++----- src/{primitives.rs => primitives/mod.rs} | 0 src/{sequence.rs => sequence/mod.rs} | 0 5 files changed, 4 insertions(+), 5 deletions(-) rename src/{choice.rs => choice/mod.rs} (100%) rename src/{combinators.rs => combinators/mod.rs} (100%) rename src/{primitives.rs => primitives/mod.rs} (100%) rename src/{sequence.rs => sequence/mod.rs} (100%) diff --git a/src/choice.rs b/src/choice/mod.rs similarity index 100% rename from src/choice.rs rename to src/choice/mod.rs diff --git a/src/combinators.rs b/src/combinators/mod.rs similarity index 100% rename from src/combinators.rs rename to src/combinators/mod.rs diff --git a/src/lib.rs b/src/lib.rs index c888fc7..f172bc1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,9 @@ -#![allow(dead_code)] //TODO eventually turn this off mod bnf; -mod choice; -mod combinators; +pub mod choice; +pub mod combinators; mod parser; -mod primitives; -mod sequence; +pub mod primitives; +pub mod sequence; pub use parser::{ParseResult, Parser, ParserInput}; diff --git a/src/primitives.rs b/src/primitives/mod.rs similarity index 100% rename from src/primitives.rs rename to src/primitives/mod.rs diff --git a/src/sequence.rs b/src/sequence/mod.rs similarity index 100% rename from src/sequence.rs rename to src/sequence/mod.rs