summaryrefslogtreecommitdiff
path: root/src/parser/parser_builder.h
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-10-22 22:50:39 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-10-22 22:50:39 +0000
commit3870dd8a11c1153e2db24ffe1b384b84129c2df4 (patch)
tree73524745d29dd32a160867afed4f314049211cef /src/parser/parser_builder.h
parenta486cdde94366aa6b4a1f558eecc0130ba25ad5e (diff)
Using Options in ParserBuilder and InteractiveShell
Diffstat (limited to 'src/parser/parser_builder.h')
-rw-r--r--src/parser/parser_builder.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/parser/parser_builder.h b/src/parser/parser_builder.h
index 2e0af677e..4e8c06f78 100644
--- a/src/parser/parser_builder.h
+++ b/src/parser/parser_builder.h
@@ -23,8 +23,10 @@
#include <string>
-#include "parser/input.h"
-#include "parser/parser_options.h"
+#include "input.h"
+#include "parser_options.h"
+
+#include "util/options.h"
namespace CVC4 {
@@ -87,11 +89,16 @@ class CVC4_PUBLIC ParserBuilder {
/** Should we memory-map a file input? */
bool d_mmap;
+ void init(ExprManager& exprManager, const std::string& filename);
+
public:
/** Create a parser builder using the given ExprManager and filename. */
ParserBuilder(ExprManager& exprManager, const std::string& filename);
+ ParserBuilder(ExprManager& exprManager, const std::string& filename,
+ const Options& options);
+
/** Build the parser, using the current settings. */
Parser *build() throw (InputStreamException,AssertionException);
@@ -118,6 +125,9 @@ public:
* the parser will have a file input. (Default: no) */
ParserBuilder& withMmap(bool flag = true);
+ /** Derive settings from the given options. */
+ ParserBuilder& withOptions(const Options& options);
+
/** Should the parser use strict mode? (Default: no) */
ParserBuilder& withStrictMode(bool flag = true);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback