Loading...
Searching...
No Matches
forExpr.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
7
8 class frame;
9
15 class _nout forExpr: public loopExpr {
17 friend class coreInternal;
18
19 public:
20 forExpr(const std::string& localName, const node& container, const blockExpr& blk);
21
22 public:
23 const std::string& getLocalName() const;
24 str getContainer();
25
26 protected:
33 tstr<loop> _makeLoop(arr* ret) const override;
39 str _makeEval() const override;
40
41 private:
42 str _container;
43 std::string _name;
44 };
45}
Scripted array container for byeol language.
Definition arr.hpp:15
Block expression.
Definition blockExpr.hpp:24
Definition coreInternal.hpp:39
Type information for expression nodes
Definition expr.hpp:45
For loop expression.
Definition forExpr.hpp:15
str _makeEval() const override
Protected virtual method to create the evaluation part of the loop.
tstr< loop > _makeLoop(arr *ret) const override
Protected virtual method to create the actual loop mechanism.
Base class for loop expressions.
Definition loopExpr.hpp:17
Base class for all AST nodes in the byeol language.
Definition node.hpp:195
Definition tnarr.hpp:9
to Top