로딩중...
검색중...
일치하는것 없음
starter.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
4#include "core/ast/origin.hpp"
5#include "core/worker/tworker.inl"
7
8namespace by {
9 class frames;
10
39 class _nout starter: public tworker<str, node> {
42
43 public:
44 enum logFlag3 {
45 LOG_STRUCTURE = 1 << 7,
46 LOG_GRAPH_ON_EX = 1 << 8
47 };
48
49 public:
50 static inline const std::string MAIN = "main";
51
52 public:
53 void setArgs(const args& a);
54 void setArgs(const args* it) BY_SIDE_FUNC(setArgs);
55 args& getArgs();
56 const args& getArgs() const BY_CONST_FUNC(getArgs())
57
58 protected:
59 str _onWork() override;
60 void _prepare() override;
61
62 private:
63 node* _findMain(node& pak, const args& a);
64 void _prepareFrame(frames& fr);
65 str _postprocess(const str& res);
66
67 private:
68 str _pak;
69 tstr<args> _args;
70 };
71} // namespace by
Function or object evaluation arguments
Definition args.hpp:22
Container for execution frame stack
Definition frames.hpp:24
Base class for all AST nodes in the byeol language
Definition node.hpp:195
Program execution starter
Definition starter.hpp:39
const args &getArgs() const BY_CONST_FUNC(getArgs()) protected void _prepare() override
Protected virtual method for preparation before starting the work.
Definition tnarr.hpp:9
Base worker template for processing tasks
Definition tworker.hpp:58
to Top