summaryrefslogtreecommitdiff
path: root/dhall/src/syntax
diff options
context:
space:
mode:
authorNadrieril2019-12-17 12:24:14 +0000
committerNadrieril2019-12-17 12:24:14 +0000
commit47e763c3ee4c1a07b51c68854cd2d48288b65056 (patch)
treed0dee319a42d3f1ab405a1bba5d73b7d682fa8a0 /dhall/src/syntax
parentd6fbfc5f6effba8706615cf52536b28abcb91343 (diff)
Split syntax module between text and binary
Diffstat (limited to '')
-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