Parse
The static Parse
class provides methods for building recursive-descent parsers, as well as combinators for creating more complex parsers from simpler ones. Parsers are functions that anaylze text producing some arbitrary structure.
delegate Parser<T>(TextScanner) ➜ IParseResult<T>
All parsers return an IParseResult<T>
object indicating whether it successfully matched a prefix. In the case of success, the result is either an EmptyToken<T>
or a Lexeme<T>
, otherwise, it is a Failure<T>
.