summaryrefslogtreecommitdiff
path: root/dhall_core/src
diff options
context:
space:
mode:
authorNadrieril2019-03-11 21:40:39 +0100
committerNadrieril2019-03-11 21:40:39 +0100
commitcd7b13a170550681a905a4cfcf1e94f0290860c8 (patch)
tree6c39f5e2f8f5a5811dc28bfa0fa22b5e3f57c54a /dhall_core/src
parent4bc06a292cf180c4eff727b33b3aa4a4c1c92c5a (diff)
Add some explanatory comments
Diffstat (limited to 'dhall_core/src')
-rw-r--r--dhall_core/src/parser.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs
index 357d006..b0741ed 100644
--- a/dhall_core/src/parser.rs
+++ b/dhall_core/src/parser.rs
@@ -8,6 +8,11 @@ use dhall_parser::{DhallParser, Rule};
use crate::core;
use crate::core::*;
+// This file consumes the parse tree generated by pest and turns it into
+// our own AST. All those custom macros should eventually moved into
+// their own crate because they are quite general and useful. For now they
+// are here and hopefully you can figure out how they work.
+
pub type ParsedExpr = Expr<X, Import>;
pub type BoxExpr = Box<ParsedExpr>;