Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
PrintCommand.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <ast/Command.h>
10#include <ast/Expression.h>
11
12namespace cli {
13
14class PrintCommand : public Command {
15 std::unique_ptr < Expression > m_expr;
16
17public:
18 PrintCommand ( std::unique_ptr < Expression > expr ) : m_expr ( std::move ( expr ) ) {
19 }
20
21 CommandResult run ( Environment & environment ) const override;
22};
23
24} /* namespace cli */
25
Definition: Command.h:14
Definition: Environment.h:29
Definition: PrintCommand.h:14
PrintCommand(std::unique_ptr< Expression > expr)
Definition: PrintCommand.h:18
CommandResult run(Environment &environment) const override
Definition: PrintCommand.cpp:13
Definition: Arg.h:11
CommandResult
Definition: CommandResult.h:10
Definition: FordFulkerson.hpp:16