static Input* newStringInput(ExprManager* exprManager, InputLanguage lang, const std::string& input, const std::string& name);
/**
- * Check if we are done -- either the end of input has been reached, or some
- * error has been encountered.
- * @return true if parser is done
- */
+ * Check if we are done -- either the end of input has been reached, or some
+ * error has been encountered.
+ * @return true if parser is done
+ */
bool done() const;
/** Enable semantic checks during parsing. */
void enableChecks();
- /** Disable semantic checks during parsing. Disabling checks may lead to crashes on bad inputs. */
+ /**
+ * Disable semantic checks during parsing. Disabling checks may lead
+ * to crashes on bad inputs.
+ */
void disableChecks();
/**
** A collection of state for use by parser implementations.
**/
-#ifndef __CVC4__PARSER__PARSER_STATE_H_
-#define __CVC4__PARSER__PARSER_STATE_H_
+#include "cvc4parser_private.h"
+
+#ifndef __CVC4__PARSER__PARSER_STATE_H
+#define __CVC4__PARSER__PARSER_STATE_H
#include <string>
} // namespace CVC4
-#endif /* __CVC4__PARSER__PARSER_STATE_H_ */
+#endif /* __CVC4__PARSER__PARSER_STATE_H */
** See the file COPYING in the top-level source directory for licensing
** information.
**
- ** Black box testing of CVC4::parser::SmtParser.
+ ** White box testing of CVC4::parser::SmtParser.
**/
#include <cxxtest/TestSuite.h>
const int numBadSmtExprs = sizeof(badSmtExprs) / sizeof(string);
-class ParserBlack : public CxxTest::TestSuite {
+class ParserWhite : public CxxTest::TestSuite {
ExprManager *d_exprManager;
/* Set up declaration context for expr inputs */
} catch (Exception& e) {
cout << "\nGood expr failed:\n" << goodBooleanExprs[i] << endl;
cout << e;
- throw e;
+ throw;
}
}
}