Represents initial symbol used as an initial symbol of a grammar.
More...
#include <InitialSymbol.h>
|
template<typename Base > |
static Base | instance () |
| Factory for the symbol construction of the symbol based on given type. More...
|
|
Represents initial symbol used as an initial symbol of a grammar.
◆ InitialSymbol()
alphabet::InitialSymbol::InitialSymbol |
( |
| ) |
|
|
explicitdefault |
Creates a new instance of the symbol.
◆ instance()
template<typename Base >
Base alphabet::InitialSymbol::instance |
|
inlinestatic |
Factory for the symbol construction of the symbol based on given type.
◆ operator<=>()
std::strong_ordering alphabet::InitialSymbol::operator<=> |
( |
const InitialSymbol & |
| ) |
const |
|
inline |
The three way comparison implementation
- Parameters
-
- Returns
- the ordering between this object and the
other
.
◆ operator==()
bool alphabet::InitialSymbol::operator== |
( |
const InitialSymbol & |
| ) |
const |
|
inline |
The equality comparison implementation.
- Parameters
-
other | the other object to compare with. |
- Returns
- true if this and other objects are equal, false othervise
◆ operator<<
Print this object as raw representation to ostream.
- Parameters
-
os | ostream where to print |
instance | object to print |
- Returns
- modified output stream
The documentation for this class was generated from the following files: