Skip to main content

Module parser

Module parser 

Source
Expand description

Parser for alpm-db-desc files.

EnumsΒ§

Section
A single logical section from a database desc file.
SectionKeyword
A known section name in an alpm-db-desc file.

FunctionsΒ§

end_of_values πŸ”’
Recognizes the end of a list of values, without consuming anything.
newlines πŸ”’
One or multiple newlines.
section πŸ”’
Parses a single %SECTION% block and returns a Section variant.
sections πŸ”’
Parses all %SECTION% blocks from the given input into a list of Sections.
try_value_from πŸ”’
A parser helper, which returns a FromStr-style parser for types that don’t implement their own parser.
try_values_from πŸ”’
A parser helper for multi-value types, which returns a FromStr-style parser for types that don’t implement their own parser.
values πŸ”’
Parses a list of values, where each value is in its own line.