![]() |
Spicy
|
#include <production.h>
Public Member Functions | |
template<typename T , typename std::enable_if_t< std::is_base_of< trait::isProduction, T >::value > * = nullptr> | |
Production (T t) | |
Production (const Production &)=default | |
Production (Production &&) noexcept=default | |
Production & | operator= (const Production &)=default |
Production & | operator= (Production &&)=default |
operator std::string () const | |
A single production inside a grammar. This is a type-erased class that wraps all types of productions.
Production
interface instead.
|
inline |
Constructs a production from an instance of a class implementing the Production
interface.
|
inlineexplicit |
Returns a readable representation of the production for diagnostics.