diff options
| author | bringert <bringert@cs.chalmers.se> | 2005-11-28 21:45:58 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2005-11-28 21:45:58 +0000 |
| commit | 5d7bcac1e5c59c83c81ee51be416fbd907989507 (patch) | |
| tree | 7a1cb976ca9433f6f13d6d1edc003cf89955a963 /src/Transfer/Syntax/Par.y | |
| parent | 02c23401a7a3e54d48084fc2796a485de36383f1 (diff) | |
Changed precedence of projection to be higher than application.
Diffstat (limited to 'src/Transfer/Syntax/Par.y')
| -rw-r--r-- | src/Transfer/Syntax/Par.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Transfer/Syntax/Par.y b/src/Transfer/Syntax/Par.y index 8453a3c61..d9bb771f6 100644 --- a/src/Transfer/Syntax/Par.y +++ b/src/Transfer/Syntax/Par.y @@ -203,17 +203,17 @@ Exp7 : Exp7 '*' Exp8 { EMul $1 $3 } Exp8 :: { Exp } -Exp8 : Exp8 '.' Ident { EProj $1 $3 } +Exp8 : '-' Exp8 { ENeg $2 } | Exp9 { $1 } Exp9 :: { Exp } -Exp9 : '-' Exp9 { ENeg $2 } +Exp9 : Exp9 Exp10 { EApp $1 $2 } | Exp10 { $1 } Exp10 :: { Exp } -Exp10 : Exp10 Exp11 { EApp $1 $2 } +Exp10 : Exp10 '.' Ident { EProj $1 $3 } | Exp11 { $1 } |
