diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-05-01 22:32:32 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-05-01 22:32:32 +0000 |
commit | bf837ea666980a0556d7881316f34be7ad1e2ea2 (patch) | |
tree | 6c0a5eae01f7967c02a0ef84c4bccbacf5dfa35f /src/expr/command.cpp | |
parent | 89b0369e887b4cf876e95dc862ae3057383370f3 (diff) |
minor fixes, plus experimental readline support in InteractiveShell
Diffstat (limited to 'src/expr/command.cpp')
-rw-r--r-- | src/expr/command.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/expr/command.cpp b/src/expr/command.cpp index 48cf4ea93..d300b27de 100644 --- a/src/expr/command.cpp +++ b/src/expr/command.cpp @@ -158,6 +158,15 @@ void QueryCommand::toStream(std::ostream& out) const { out << "Query(" << d_expr << ')'; } +/* class QuitCommand */ + +QuitCommand::QuitCommand() { +} + +void QuitCommand::toStream(std::ostream& out) const { + out << "Quit()" << endl; +} + /* class CommandSequence */ CommandSequence::CommandSequence() : @@ -208,6 +217,14 @@ DeclarationCommand::DeclarationCommand(const std::vector<std::string>& ids, Type d_type(t) { } +const std::vector<std::string>& DeclarationCommand::getDeclaredSymbols() const { + return d_declaredSymbols; +} + +Type DeclarationCommand::getDeclaredType() const { + return d_type; +} + void DeclarationCommand::toStream(std::ostream& out) const { out << "Declare(["; copy( d_declaredSymbols.begin(), d_declaredSymbols.end() - 1, |