Loading...
Searching...
No Matches
statable.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "core/common.hpp"
5
6namespace by {
7 enum state {
8 RELEASED = 0,
9 PARSING = 1,
10 PARSED, // all AST has been parsed and expanded.
11 EXPANDED, // expander resolved dependencies.
12 VERIFIED, // verifier checked this node.
13 LINKED, // eval and attached to system.
14 INVALID, // loading of pod has been failed.
15 };
16
21 class _nout statable {
22 BY(ME(statable))
23
24 public:
25 virtual state getState() const = 0;
26 virtual void setState(state new1) = 0;
27 };
28}
Interface for objects with compilation state.
Definition statable.hpp:21
to Top