From 8e799548618318c37760a2e915eb994745574748 Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 2 Oct 2009 13:25:12 +0000 Subject: Implicit arguments in GF. Works only in PGF for now. --- src/GF/Grammar/Grammar.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/GF/Grammar/Grammar.hs') diff --git a/src/GF/Grammar/Grammar.hs b/src/GF/Grammar/Grammar.hs index d7af03f22..e3b4ddbae 100644 --- a/src/GF/Grammar/Grammar.hs +++ b/src/GF/Grammar/Grammar.hs @@ -122,6 +122,7 @@ data Term = | App Term Term -- ^ application: @f a@ | Abs BindType Ident Term -- ^ abstraction: @\x -> b@ | Meta {-# UNPACK #-} !MetaId -- ^ metavariable: @?i@ (only parsable: ? = ?0) + | ImplArg Term -- ^ placeholder for implicit argument @{t}@ | Prod BindType Ident Term Term -- ^ function type: @(x : A) -> B@, @A -> B@, @({x} : A) -> B@ | Typed Term Term -- ^ type-annotated term -- @@ -177,6 +178,8 @@ data Patt = | PVal Patt Type Int -- ^ parameter value number: @T # i# | PAs Ident Patt -- ^ as-pattern: x@p + + | PImplArg Patt -- ^ placeholder for pattern for implicit argument @{p}@ -- regular expression patterns | PNeg Patt -- ^ negated pattern: -p -- cgit v1.2.3