diff options
author | Nadrieril | 2019-03-06 23:35:39 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-06 23:35:39 +0100 |
commit | 54382cd107d1befd6015f8232716158a20db44a4 (patch) | |
tree | 81afc63e474ad58f384dde36550f9d50756c5217 /dhall/src/imports.rs | |
parent | 39fc0af2548127a7c2ee1345d4ea63d473e0ab5a (diff) |
Start parsing imports
Diffstat (limited to '')
-rw-r--r-- | dhall/src/imports.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dhall/src/imports.rs b/dhall/src/imports.rs new file mode 100644 index 0000000..32ddfd7 --- /dev/null +++ b/dhall/src/imports.rs @@ -0,0 +1,11 @@ +use dhall_core::{Expr, Import, ImportLocation, ImportMode, FilePrefix, X}; + + +// fn resolve_import(import: Import) -> Expr<X, Import> { + +// } + +pub fn resolve_imports<'i, S: Clone>(expr: &Expr<'i, S, Import>) -> Expr<'i, S, X> { + let no_import = |_: &Import| -> X { panic!("ahhh import") }; + expr.map_embed(&no_import) +} |