Changed the occam parser to parse SIZE followed by a variable into the new VariableSizes item

This commit is contained in:
Neil Brown 2009-03-30 15:33:36 +00:00
parent 3876c1b6e9
commit c46346ffa2

View File

@ -765,7 +765,7 @@ sizeExpr
<|> do v <- operand
return $ A.SizeExpr m v
<|> do v <- (directedChannel <|> timer <|> port)
return $ A.SizeVariable m v
return $ A.ExprVariable m $ specificDimSize 0 v
<?> "SIZE expression"
functionCall :: OccParser A.Expression