Skip to main content

Module parser

Module parser 

Source
Expand description

Combinator parsing utilities.

Provides the core Parser type and related type definitions for building lexer-driven parsers.

Enums§

Parser
Represents the result of a parsing operation.

Functions§

many
Parses zero or more occurrences of parser until it fails. Returns the collected items and the updated lexer.
many1
Parses one or more occurrences of parser. Returns Fail if the first attempt fails.
sep_by
Parses zero or more occurrences of parser separated by separator.

Type Aliases§

ParserFn
Represents a typical parser function signature that takes a lexer reference and returns a Parser result.
RefLexer
A mutable reference to a Lexer, commonly used by parser functions to consume tokens.