mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-23 09:52:55 -06:00
change the precedence for the left argument of ->
This commit is contained in:
@@ -554,7 +554,7 @@ ListBind
|
|||||||
Decl :: { [Hypo] }
|
Decl :: { [Hypo] }
|
||||||
Decl
|
Decl
|
||||||
: '(' ListBind ':' Exp ')' { [(b,x,$4) | (b,x) <- $2] }
|
: '(' ListBind ':' Exp ')' { [(b,x,$4) | (b,x) <- $2] }
|
||||||
| Exp4 { [mkHypo $1] }
|
| Exp3 { [mkHypo $1] }
|
||||||
|
|
||||||
ListTupleComp :: { [Term] }
|
ListTupleComp :: { [Term] }
|
||||||
ListTupleComp
|
ListTupleComp
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ ppEnv e = hcat (map (\(x,t) -> braces (ppIdent x <> text ":=" <> ppValue Unquali
|
|||||||
str s = doubleQuotes (text s)
|
str s = doubleQuotes (text s)
|
||||||
|
|
||||||
ppDecl q (_,id,typ)
|
ppDecl q (_,id,typ)
|
||||||
| id == identW = ppTerm q 4 typ
|
| id == identW = ppTerm q 3 typ
|
||||||
| otherwise = parens (ppIdent id <+> colon <+> ppTerm q 0 typ)
|
| otherwise = parens (ppIdent id <+> colon <+> ppTerm q 0 typ)
|
||||||
|
|
||||||
ppDDecl q (_,id,typ)
|
ppDDecl q (_,id,typ)
|
||||||
|
|||||||
Reference in New Issue
Block a user