compliance.
Thanks to David Cok of GrammaTech, Inc., for suggesting numerous improvements
-in CVC4's SMT-LIBv2 compliance in May 2013.
+in CVC4's SMT-LIBv2 compliance in 2013 and 2014.
Thanks to Adam Buchbinder at Google for submitting patches in November 2013 to
fix a number of issues with CVC3 (which were also applicable to CVC4's
{ sexpr = SExpr(Integer(AntlrInput::tokenText($INTEGER_LITERAL))); }
| DECIMAL_LITERAL
{ sexpr = SExpr(AntlrInput::tokenToRational($DECIMAL_LITERAL)); }
+ | HEX_LITERAL
+ { assert( AntlrInput::tokenText($HEX_LITERAL).find("#x") == 0 );
+ std::string hexString = AntlrInput::tokenTextSubstr($HEX_LITERAL, 2);
+ sexpr = Integer(hexString, 16);
+ }
+ | BINARY_LITERAL
+ { assert( AntlrInput::tokenText($BINARY_LITERAL).find("#b") == 0 );
+ std::string binString = AntlrInput::tokenTextSubstr($BINARY_LITERAL, 2);
+ sexpr = Integer(binString, 2);
+ }
| str[s,false]
{ sexpr = SExpr(s); }
// | LPAREN_TOK STRCST_TOK