@@ -704,6 +704,8 @@ data PTerm = PQuote Raw
704 | PDisamb [[T.Text]] PTerm -- ^ Preferences for explicit namespaces
704 | PDisamb [[T.Text]] PTerm -- ^ Preferences for explicit namespaces
705 | PUnifyLog PTerm -- ^ dump a trace of unifications when building term
705 | PUnifyLog PTerm -- ^ dump a trace of unifications when building term
706 | PNoImplicits PTerm -- ^ never run implicit converions on the term
706 | PNoImplicits PTerm -- ^ never run implicit converions on the term
707+ | PQuasiquote PTerm -- ^ `(Term)
708+ | PUnquote PTerm -- ^ ,Term
707 deriving Eq
709 deriving Eq
@@ -971,14 +973,15 @@ data SyntaxInfo = Syn { using :: [Using],
971 implicitAllowed :: Bool,
973 implicitAllowed :: Bool,
972 maxline :: Maybe Int,
974 maxline :: Maybe Int,
973 mut_nesting :: Int,
975 mut_nesting :: Int,
974− dsl_info :: DSL }
976+ dsl_info :: DSL,
977+ syn_in_quasiquote :: Bool }
975 deriving Show
978 deriving Show
977deriving instance NFData SyntaxInfo
980deriving instance NFData SyntaxInfo
978deriving instance Binary SyntaxInfo
981deriving instance Binary SyntaxInfo
981−defaultSyntax = Syn [] [] [] [] id False False Nothing 0 initDSL
984+defaultSyntax = Syn [] [] [] [] id False False Nothing 0 initDSL False
983expandNS :: SyntaxInfo -> Name -> Name
986expandNS :: SyntaxInfo -> Name -> Name
984expandNS syn n@(NS _ _) = n
987expandNS syn n@(NS _ _) = n
@@ -1353,8 +1356,10 @@ pprintPTerm ppo bnd docArgs infixes = prettySe 10 bnd
1353 prettySe p bnd (PDoBlock _) = text "do block pretty not implemented"
1356 prettySe p bnd (PDoBlock _) = text "do block pretty not implemented"
1354 prettySe p bnd (PCoerced t) = prettySe p bnd t
1357 prettySe p bnd (PCoerced t) = prettySe p bnd t
1355 prettySe p bnd (PElabError s) = pretty s
1358 prettySe p bnd (PElabError s) = pretty s
1359+ prettySe p bnd (PQuasiquote t) = text "`(" <> prettySe p bnd t <> text ")"
1360+ prettySe p bnd (PUnquote t) = text "~" <> prettySe p bnd t
1357− prettySe p bnd _ = text "test"
1362+ prettySe p bnd _ = text "missing pretty-printer for term"
1359 prettyArgS bnd (PImp _ _ _ n tm) = prettyArgSi bnd (n, tm)
1364 prettyArgS bnd (PImp _ _ _ n tm) = prettyArgSi bnd (n, tm)
1360 prettyArgS bnd (PExp _ _ _ tm) = prettyArgSe bnd tm
1365 prettyArgS bnd (PExp _ _ _ tm) = prettyArgSe bnd tm