4.6.0
Freundlich's C++ toolkit
|
Base class for a parser.
The type of a parser usually gets very complicated because it depends on all of its subparsers. In case we want to declare a parser as a member of a class for example, we want to use a simpler type. This is achieved by using fcppt::parse::make_base to create a parser of type base. The employed technique is also known as type erasure.
Public Types | |
using | result_type = Result |
Public Member Functions | |
virtual | ~base () |
virtual fcppt::parse::result< Ch, result_type > | parse (fcppt::reference< fcppt::parse::basic_stream< Ch > >, Skipper const &) const =0 |
Protected Member Functions | |
base () | |
using fcppt::parse::base< Result, Ch, Skipper >::result_type = Result |
|
protected |
|
virtual |
|
nodiscardpure virtual |