diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2012-12-11 17:55:29 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2012-12-11 17:55:29 -0500 |
commit | 5eaeeb2156a9d035250ed8ec5af6391995bb10f5 (patch) | |
tree | 6a973890f2191c68c34cc9d3919695e75c2c89cb /src/parser/parser.cpp | |
parent | 8319e8d21f43b268168e4e66b1341630c7fb44e2 (diff) |
Ignore unknown term annotations (giving a warning). Resolves bug 479.
Diffstat (limited to 'src/parser/parser.cpp')
-rw-r--r-- | src/parser/parser.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp index 721dedc70..65d46220b 100644 --- a/src/parser/parser.cpp +++ b/src/parser/parser.cpp @@ -16,6 +16,7 @@ #include <iostream> #include <fstream> +#include <sstream> #include <iterator> #include <stdint.h> #include <cassert> @@ -500,6 +501,14 @@ Expr Parser::nextExpression() throw(ParserException) { return result; } +void Parser::attributeNotSupported(const std::string& attr) { + if(d_attributesWarnedAbout.find(attr) == d_attributesWarnedAbout.end()) { + stringstream ss; + ss << "warning: Attribute " << attr << " not supported (ignoring this and all following uses)"; + d_input->warning(ss.str()); + d_attributesWarnedAbout.insert(attr); + } +} }/* CVC4::parser namespace */ }/* CVC4 namespace */ |