summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-04-01 19:55:45 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-04-01 19:55:45 +0000
commited25d7b7527691442ab48d02353e20c87ab8e2da (patch)
treeaf5aef20666cba7da52c74c57a8cadae5081ae92 /src/main
parentbc05271730c9bbd096a6dbace366016529933246 (diff)
Parser tweaks to address review
Private members of Input moved to new class ParserState
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 174ab4b7f..5e1f4be93 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -146,23 +146,23 @@ int runCvc4(int argc, char* argv[]) {
}
// Create the parser
- Input* parser;
- istream* input = NULL;
+ Input* input;
+ /* TODO: Hack ANTLR3 to support input from streams */
// if(inputFromStdin) {
// parser = Parser::getNewParser(&exprMgr, options.lang, cin, "<stdin>");
// } else {
- parser = Input::newFileParser(&exprMgr, options.lang, argv[firstArgIndex],
+ input = Input::newFileInput(&exprMgr, options.lang, argv[firstArgIndex],
options.memoryMap);
// }
if(!options.semanticChecks) {
- parser->disableChecks();
+ input->disableChecks();
}
// Parse and execute commands until we are done
Command* cmd;
- while((cmd = parser->parseNextCommand())) {
+ while((cmd = input->parseNextCommand())) {
if( !options.parseOnly ) {
doCommand(smt, cmd);
}
@@ -170,7 +170,7 @@ int runCvc4(int argc, char* argv[]) {
}
// Remove the parser
- delete parser;
+ delete input;
delete input;
switch(lastResult.asSatisfiabilityResult().isSAT()) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback