Loading...
Searching...
No Matches
thread.hpp
Go to the documentation of this file.
1
2#pragma once
3
8
9struct exprTest;
10
11namespace by {
12
13 class podLoader;
14
46 class _nout thread: public node, public dumpable {
47 BY(CLASS(thread, node))
48 friend class coreInternal;
49 friend struct ::exprTest;
50
51 public:
52 thread();
57 thread(const errReport& new1);
58
59 public:
60 const frames& getFrames() const BY_CONST_FUNC(_getFrames())
61 const frame* getNowFrame() const BY_CONST_FUNC(_getNowFrame())
62
63 static thread& get();
64 static void set(thread* new1);
65 static void set(thread& new1);
66 static const instancer* getInstancer();
67
72 errReport& getEx();
78 virtual void setEx(const errReport& new1);
79 void setEx(const errReport* it) BY_SIDE_FUNC(setEx);
80
81 // node:
82 scope& subs() override;
83
84 using super::prioritize;
85 priorType prioritize(const args& a) const override;
86
87 using super::eval;
88 str eval(const args& a) override;
89
90 void rel() override;
91
96 const nmap& getPods() const;
97
98 void dump() const override;
99
106 virtual nbool isInteractable() const;
107
108 protected:
109 virtual frames& _getFrames();
110 frame* _getNowFrame();
111
112 private:
113 void _loadBuiltIns(nmap& tray) const;
114 tstr<nmap> _initPods() const;
115
116 private:
117 frames _frames;
119 };
120} // namespace by
Function or object evaluation arguments.
Definition args.hpp:22
Definition coreInternal.hpp:39
Error report collector.
Definition errReport.hpp:24
Execution frame.
Definition frame.hpp:52
Container for execution frame stack.
Definition frames.hpp:24
Base class for all AST nodes in the byeol language.
Definition node.hpp:195
Thread execution context for byeol runtime.
Definition thread.hpp:46
thread(const errReport &new1)
Constructs a thread object with a custom error report instance.
Definition tnarr.hpp:9
priorType
Definition tpriorities.hpp:10
to Top