@@ -1,4 +1,4 @@
1−module Parse.Expression (def,term,typeAnnotation) where
1+module Parse.Expression (def,term,typeAnnotation,expr) where
22
33import Control.Arrow ((***))
44import Control.Applicative ((<$>), (<*>))
@@ -16,7 +16,6 @@ import SourceSyntax.Location as Location
1616import SourceSyntax.Pattern hiding (tuple,list)
1717import qualified SourceSyntax.Literal as Literal
1818import SourceSyntax.Expression
19−import SourceSyntax.Declaration (Declaration(Definition))
2019
2120
2221-------- Basic Terms --------
@@ -191,6 +190,7 @@ caseExpr = do
191190 with = brackets (semiSep1 (case_ <?> "cases { x -> ... }"))
192191 without = block (do c <- case_ ; whitespace ; return c)
193192
193+expr :: IParser (LExpr t v)
194194expr = addLocation (choice [ ifExpr, letExpr, caseExpr ])
195195 <|> lambdaExpr
196196 <|> binaryExpr