Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
ImmediateArg.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <ast/Arg.h>
9#include <alib/string>
10
11namespace cli {
12
13class ImmediateArg final : public Arg {
14 std::string m_value;
15
16public:
17 ImmediateArg ( std::string value ) : m_value ( std::move ( value ) ) {
18 }
19
20 std::string eval ( Environment & ) const override {
21 return m_value;
22 }
23};
24
25} /* namespace cli */
26
Definition: Arg.h:13
Definition: Environment.h:29
Definition: ImmediateArg.h:13
ImmediateArg(std::string value)
Definition: ImmediateArg.h:17
std::string eval(Environment &) const override
Definition: ImmediateArg.h:20
Definition: Arg.h:11
Definition: FordFulkerson.hpp:16