projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a69f12
)
Improve error in CVC parser in presence of unrecognized command name.
author
Morgan Deters
<mdeters@cs.nyu.edu>
Fri, 3 Oct 2014 17:22:45 +0000
(13:22 -0400)
committer
Morgan Deters
<mdeters@cs.nyu.edu>
Fri, 3 Oct 2014 17:22:45 +0000
(13:22 -0400)
src/parser/cvc/Cvc.g
patch
|
blob
|
history
diff --git
a/src/parser/cvc/Cvc.g
b/src/parser/cvc/Cvc.g
index 0a440f2990ea92b0a0093a0c3f3e896a9cdcf32e..347759c9aa7910a5bb516d2b3bd5506f762bbff6 100644
(file)
--- a/
src/parser/cvc/Cvc.g
+++ b/
src/parser/cvc/Cvc.g
@@
-635,6
+635,13
@@
command returns [CVC4::Command* cmd = NULL]
cmd = new EmptyCommand();
}
}
+ | IDENTIFIER SEMICOLON
+ { std::stringstream ss;
+ ss << "Unrecognized command `"
+ << AntlrInput::tokenText($IDENTIFIER)
+ << "'";
+ PARSER_STATE->parseError(ss.str());
+ }
;
typeOrVarLetDecl[CVC4::parser::DeclarationCheck check]