diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-04-29 16:53:19 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-04-29 16:53:19 +0000 |
commit | 194c5b6f04c7c9bec8c0f23b88ac8d0f0094186a (patch) | |
tree | 20faf669228e725a7521311841a13b5ddbb71a78 /src/expr/command.h | |
parent | b99ec8f0f659884d30c5fa1a9312addd07e75059 (diff) |
First draft implementation of SMT v2 parser
Diffstat (limited to 'src/expr/command.h')
-rw-r--r-- | src/expr/command.h | 7 |
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) |