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 PARSED = 1, // all AST has been parsed and expanded.
10 VERIFIED, // verifier checked this node.
11 LINKED, // run and attached to system.
12 };
13
17 class _nout statable {
18 BY(ME(statable))
19
20 public:
21 virtual state getState() const = 0;
22 virtual void setState(state new1) = 0;
23 };
24}
Interface for objects with compilation state.
Definition: statable.hpp:17