summaryrefslogtreecommitdiff
path: root/src/expr/command.h
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-04-29 16:53:19 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-04-29 16:53:19 +0000
commit194c5b6f04c7c9bec8c0f23b88ac8d0f0094186a (patch)
tree20faf669228e725a7521311841a13b5ddbb71a78 /src/expr/command.h
parentb99ec8f0f659884d30c5fa1a9312addd07e75059 (diff)
First draft implementation of SMT v2 parser
Diffstat (limited to 'src/expr/command.h')
-rw-r--r--src/expr/command.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/expr/command.h b/src/expr/command.h
index bb295a662..3be957feb 100644
--- a/src/expr/command.h
+++ b/src/expr/command.h
@@ -93,6 +93,7 @@ public:
class CVC4_PUBLIC DeclarationCommand : public EmptyCommand {
public:
+ DeclarationCommand(const std::string& id, const Type& t);
DeclarationCommand(const std::vector<std::string>& ids, const Type& t);
void toStream(std::ostream& out) const;
protected:
@@ -259,6 +260,12 @@ inline void CommandSequence::addCommand(Command* cmd) {
/* class DeclarationCommand */
+inline DeclarationCommand::DeclarationCommand(const std::string& id, const Type& t) :
+ d_type(t)
+{
+ d_declaredSymbols.push_back(id);
+}
+
inline DeclarationCommand::DeclarationCommand(const std::vector<std::string>& ids, const Type& t) :
d_declaredSymbols(ids),
d_type(t)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback