summaryrefslogtreecommitdiff
path: root/src/expr/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/command.cpp')
-rw-r--r--src/expr/command.cpp17
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,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback