summaryrefslogtreecommitdiff
path: root/src/parser/parser_builder.cpp
diff options
context:
space:
mode:
authorFrançois Bobot <francois@bobot.eu>2012-06-22 15:11:37 +0000
committerFrançois Bobot <francois@bobot.eu>2012-06-22 15:11:37 +0000
commit84c4269f3b9edb8de4134fe464dfc70679da2bb1 (patch)
treeb0c8f33e04d925064ffa9d85f1caeb6a3ff745b2 /src/parser/parser_builder.cpp
parenteda7d4df5481030d4e9cb6ef4a33d52afc8f7e0a (diff)
TPTP: add parser for cnf and fof
- include directive works - no keyword : 'fof', 'cnf', ... can be used for symbols name - real -> unsorted -> real (for the one that appear, so no bijection bitween real and unsorted) - same thing for string But: - string not distinct by projection to real, not sure if the current state of string theory make them distinct - filtering in include is not done - the result is not printed in the TPTP way (currently SMT2 way)
Diffstat (limited to 'src/parser/parser_builder.cpp')
-rw-r--r--src/parser/parser_builder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/parser_builder.cpp b/src/parser/parser_builder.cpp
index dff5b93ac..d9b7cf341 100644
--- a/src/parser/parser_builder.cpp
+++ b/src/parser/parser_builder.cpp
@@ -23,6 +23,7 @@
#include "parser/parser.h"
#include "smt/smt.h"
#include "smt2/smt2.h"
+#include "tptp/tptp.h"
#include "expr/expr_manager.h"
#include "util/options.h"
@@ -91,6 +92,9 @@ Parser* ParserBuilder::build()
case language::input::LANG_SMTLIB_V2:
parser = new Smt2(d_exprManager, input, d_strictMode, d_parseOnly);
break;
+ case language::input::LANG_TPTP:
+ parser = new Tptp(d_exprManager, input, d_strictMode, d_parseOnly);
+ break;
default:
parser = new Parser(d_exprManager, input, d_strictMode, d_parseOnly);
break;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback