util.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "core/common/dep.hpp"
5
6namespace by {
7
8 class node;
9
10 enum typeAttr {
11 ATTR_ERR,
12 ATTR_CONST,
13 ATTR_COMPLETE,
14 ATTR_INCOMPLETE
15 };
16
20 class _nout util {
21 BY(ME(util))
22
23 public:
24 static typeAttr checkTypeAttr(const std::string& name);
25 static typeAttr checkTypeAttr(const std::string* it) BY_SIDE_FUNC(checkTypeAttr);
26 static std::string getEvalTypeFrom(const node& n);
27 static std::string getEvalTypeFrom(const node* it) BY_SIDE_FUNC(getEvalTypeFrom);
28 };
29}
Base class for all AST nodes in byeol language.
Definition: node.hpp:30
Core utility functions.
Definition: util.hpp:20