21 const _nout nchar* getPriorTypeName(priorType type);
27 template <
typename T>
struct tprior: instance {
66 static_assert(
areBaseOfT<T,
Es...>::value,
"some of type of args are not based on type 'T'");
67 this->add({(T&)
elems...});
71 nbool isMatched()
const;
Base class for all AST nodes in the byeol language
Definition node.hpp:195
Collection of prioritized elements
Definition tpriorities.hpp:59
const T * get() const BY_CONST_FUNC(get()) priorType getPriorType() const
Priority wrapper for type matching
Definition tpriorities.hpp:27
const T * get() const BY_CONST_FUNC(get()) nbool isSamePrecedence(const me &rhs) const
precedence is more detail concept of priority. it considers the owner of them are equal above priorit...
priorType
Definition tpriorities.hpp:10
@ NO_MATCH
Definition tpriorities.hpp:18
@ NUMERIC_MATCH
lv0: exact match.
Definition tpriorities.hpp:12
@ IMPLICIT_MATCH
Definition tpriorities.hpp:15