summaryrefslogtreecommitdiff
path: root/dhall/src
diff options
context:
space:
mode:
Diffstat (limited to 'dhall/src')
-rw-r--r--dhall/src/syntax/binary/binary.rs (renamed from dhall/src/syntax/binary.rs)0
-rw-r--r--dhall/src/syntax/binary/mod.rs2
-rw-r--r--dhall/src/syntax/mod.rs7
-rw-r--r--dhall/src/syntax/text/mod.rs2
-rw-r--r--dhall/src/syntax/text/parser.rs (renamed from dhall/src/syntax/parser.rs)0
-rw-r--r--dhall/src/syntax/text/printer.rs (renamed from dhall/src/syntax/printer.rs)0
6 files changed, 7 insertions, 4 deletions
diff --git a/dhall/src/syntax/binary.rs b/dhall/src/syntax/binary/binary.rs
index ad503ef..ad503ef 100644
--- a/dhall/src/syntax/binary.rs
+++ b/dhall/src/syntax/binary/binary.rs
diff --git a/dhall/src/syntax/binary/mod.rs b/dhall/src/syntax/binary/mod.rs
new file mode 100644
index 0000000..a97f5ee
--- /dev/null
+++ b/dhall/src/syntax/binary/mod.rs
@@ -0,0 +1,2 @@
+pub mod binary;
+pub(crate) use binary::{encode, decode};
diff --git a/dhall/src/syntax/mod.rs b/dhall/src/syntax/mod.rs
index 00ef5ed..bd5fff4 100644
--- a/dhall/src/syntax/mod.rs
+++ b/dhall/src/syntax/mod.rs
@@ -9,8 +9,7 @@ mod core;
pub use crate::syntax::core::context;
pub use crate::syntax::core::visitor;
pub use crate::syntax::core::*;
-mod printer;
-pub use crate::syntax::printer::*;
-mod parser;
-pub use crate::syntax::parser::*;
+pub use crate::syntax::text::printer::*;
+pub use crate::syntax::text::parser::*;
pub mod binary;
+pub mod text;
diff --git a/dhall/src/syntax/text/mod.rs b/dhall/src/syntax/text/mod.rs
new file mode 100644
index 0000000..c868288
--- /dev/null
+++ b/dhall/src/syntax/text/mod.rs
@@ -0,0 +1,2 @@
+pub mod parser;
+pub mod printer;
diff --git a/dhall/src/syntax/parser.rs b/dhall/src/syntax/text/parser.rs
index f6b6577..f6b6577 100644
--- a/dhall/src/syntax/parser.rs
+++ b/dhall/src/syntax/text/parser.rs
diff --git a/dhall/src/syntax/printer.rs b/dhall/src/syntax/text/printer.rs
index 8df456b..8df456b 100644
--- a/dhall/src/syntax/printer.rs
+++ b/dhall/src/syntax/text/printer.rs