summaryrefslogtreecommitdiff
path: root/src/parser/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/input.cpp')
-rw-r--r--src/parser/input.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/parser/input.cpp b/src/parser/input.cpp
index 70c887371..76aa47812 100644
--- a/src/parser/input.cpp
+++ b/src/parser/input.cpp
@@ -59,25 +59,26 @@ Input* Input::newFileInput(InputLanguage lang,
bool useMmap)
throw (InputStreamException, AssertionException) {
AntlrInputStream *inputStream =
- AntlrInputStream::newFileInputStream(filename,useMmap);
- return AntlrInput::newInput(lang,*inputStream);
+ AntlrInputStream::newFileInputStream(filename, useMmap);
+ return AntlrInput::newInput(lang, *inputStream);
}
Input* Input::newStreamInput(InputLanguage lang,
std::istream& input,
- const std::string& name)
+ const std::string& name,
+ bool lineBuffered)
throw (InputStreamException, AssertionException) {
AntlrInputStream *inputStream =
- AntlrInputStream::newStreamInputStream(input,name);
- return AntlrInput::newInput(lang,*inputStream);
+ AntlrInputStream::newStreamInputStream(input, name, lineBuffered);
+ return AntlrInput::newInput(lang, *inputStream);
}
Input* Input::newStringInput(InputLanguage lang,
const std::string& str,
const std::string& name)
throw (InputStreamException, AssertionException) {
- AntlrInputStream *inputStream = AntlrInputStream::newStringInputStream(str,name);
- return AntlrInput::newInput(lang,*inputStream);
+ AntlrInputStream *inputStream = AntlrInputStream::newStringInputStream(str, name);
+ return AntlrInput::newInput(lang, *inputStream);
}
}/* CVC4::parser namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback