Added a try to fix the parsing of BYTESIN with a not obviously constant array dimension
This commit is contained in:
parent
6456dad42e
commit
1e92333778
|
@ -1113,7 +1113,7 @@ operand'
|
|||
<|> do m <- md
|
||||
sBYTESIN
|
||||
sLeftR
|
||||
do { o <- noTypeContext operand; sRightR; return $ A.BytesInExpr m o }
|
||||
(try (do { o <- noTypeContext operand; sRightR; return $ A.BytesInExpr m o }))
|
||||
<|> do { t <- dataType; sRightR; return $ A.BytesInType m t }
|
||||
<|> do { m <- md; sOFFSETOF; sLeftR; t <- dataType; sComma; f <- fieldName; sRightR; return $ A.OffsetOf m t f }
|
||||
<|> do { m <- md; sTRUE; return $ A.True m }
|
||||
|
|
Loading…
Reference in New Issue
Block a user