From 78e9e32e1357d50313287dd2a3c437132c83aeb6 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 15 Dec 2019 20:10:54 +0000 Subject: Move contents of dhall_syntax to dhall --- dhall_syntax/src/parser.rs | 942 --------------------------------------------- 1 file changed, 942 deletions(-) delete mode 100644 dhall_syntax/src/parser.rs (limited to 'dhall_syntax/src/parser.rs') diff --git a/dhall_syntax/src/parser.rs b/dhall_syntax/src/parser.rs deleted file mode 100644 index 044d3f1..0000000 --- a/dhall_syntax/src/parser.rs +++ /dev/null @@ -1,942 +0,0 @@ -use itertools::Itertools; -use pest::prec_climber as pcl; -use pest::prec_climber::PrecClimber; -use std::rc::Rc; - -use pest_consume::{match_nodes, Parser}; - -use crate::map::{DupTreeMap, DupTreeSet}; -use crate::ExprF::*; -use crate::*; - -// 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. - -type ParsedText = InterpolatedText>; -type ParsedTextContents = InterpolatedTextContents>; -type ParseInput<'input> = pest_consume::Node<'input, Rule, Rc>; - -pub type ParseError = pest::error::Error; -pub type ParseResult = Result; - -#[derive(Debug)] -enum Selector { - Field(Label), - Projection(DupTreeSet