Attempted to fix a problem with parsing pragmas, but I suspect it's still a bit haphazard

This commit is contained in:
Neil Brown 2009-04-03 16:50:41 +00:00
parent 0d63eeb400
commit 8220630426

View File

@ -358,6 +358,7 @@ maybeIndentedList :: Meta -> String -> OccParser t -> OccParser [t]
maybeIndentedList m msg inner
= do try indent
vs <- many1 inner
optional $ many1 pragma
outdent
return vs
<|> do warnP m WarnParserOddity msg
@ -1475,7 +1476,7 @@ process
<|> intrinsicProc
<|> handleSpecs (allocation <|> specification <|> claimSpec) process
(\m s p -> A.Seq m (A.Spec m s (A.Only m p)))
<|> (pragma >> process)
<|> (tryXV pragma process)
<?> "process"
claimSpec :: OccParser ([NameSpec], OccParser ())