Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
FileStatement.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <ast/Statement.h>
10
11namespace cli {
12
13class FileStatement final : public Statement {
14 std::unique_ptr < cli::Arg > m_file;
15 std::unique_ptr < Arg > m_fileType;
16 std::unique_ptr < TypeOption > m_type;
18
19public:
20 FileStatement ( std::unique_ptr < Arg > file, std::unique_ptr < Arg > fileType, std::unique_ptr < TypeOption > type, ext::vector < std::unique_ptr < cli::Arg > > templateParams );
21
22 std::shared_ptr < abstraction::Value > translateAndEval ( const std::shared_ptr < abstraction::Value > &, Environment & environment ) const override;
23
24};
25
26} /* namespace cli */
27
Definition: Environment.h:29
Definition: FileStatement.h:13
FileStatement(std::unique_ptr< Arg > file, std::unique_ptr< Arg > fileType, std::unique_ptr< TypeOption > type, ext::vector< std::unique_ptr< cli::Arg > > templateParams)
Definition: FileStatement.cpp:15
std::shared_ptr< abstraction::Value > translateAndEval(const std::shared_ptr< abstraction::Value > &, Environment &environment) const override
Definition: FileStatement.cpp:18
Definition: Statement.h:14
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
Definition: Arg.h:11