Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
ContainerStatement.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <ast/Statement.h>
10
11namespace cli {
12
13class ContainerStatement final : public Statement {
14 std::string m_container;
16 std::unique_ptr < TypeOption > m_type;
17
18public:
19 ContainerStatement ( std::string container, ext::vector < std::shared_ptr < Statement > > params, std::unique_ptr < TypeOption > type );
20
21 std::shared_ptr < abstraction::Value > translateAndEval ( const std::shared_ptr < abstraction::Value > & prev, Environment & environment ) const override;
22
23};
24
25} /* namespace cli */
26
Definition: ContainerStatement.h:13
std::shared_ptr< abstraction::Value > translateAndEval(const std::shared_ptr< abstraction::Value > &prev, Environment &environment) const override
Definition: ContainerStatement.cpp:21
ContainerStatement(std::string container, ext::vector< std::shared_ptr< Statement > > params, std::unique_ptr< TypeOption > type)
Definition: ContainerStatement.cpp:18
Definition: Environment.h:29
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
Definition: ContainerFromStringLexer.cpp:8