提交 01c27dc9 编写于 作者: V Vidar Holen

Parse double arithmetic negation, i.e. (( !!a ));

上级 856a204e
......@@ -555,6 +555,7 @@ prop_a18= isOk readArithmeticContents "a?b:c"
prop_a19= isOk readArithmeticContents "\\\n3 +\\\n 2"
prop_a20= isOk readArithmeticContents "a ? b ? c : d : e"
prop_a21= isOk readArithmeticContents "a ? b : c ? d : e"
prop_a22= isOk readArithmeticContents "!!a"
readArithmeticContents =
readSequence
where
......@@ -650,7 +651,7 @@ readArithmeticContents =
id <- getNextId
op <- oneOf "!~"
spacing
x <- readAnySigned
x <- readAnyNegated
return $ TA_Unary id [op] x
readAnySigned = readSigned <|> readAnycremented
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册