Module parser

Source
Expand description

The parser for SRCINFO data.

It returns a rather raw line-based, but already typed representation of the contents. The representation is not useful for end-users as it provides data that is not yet validated.

Structs§

ArchProperty
An arbitrarily typed attribute that is specific to an alpm-architecture.
RawPackage
The parsed contents of a pkgname section in SRCINFO data.
RawPackageBase
The parsed contents of a pkgbase section in SRCINFO data.
SourceInfoContent
A representation of all high-level components of parsed SRCINFO data.

Enums§

ClearableProperty
Properties used in pkgname sections that can be cleared.
Ignored
Track empty/comment lines
PackageBaseKeyword
Keywords that are exclusive to the pkgbase section in SRCINFO data.
PackageBaseProperty
All possible properties of a pkgbase section in SRCINFO data.
PackageProperty
All possible properties of a pkgname section in SRCINFO data.
RelationKeyword
Keywords that describe alpm-package-relations.
RelationProperty
Properties related to package relations.
SharedMetaKeyword
Keywords that may exist both in pkgbase and pkgname sections in SRCINFO data.
SharedMetaProperty
Metadata properties that may be shared between pkgbase and pkgname sections in SRCINFO data.
SourceKeyword
Package source keywords that are exclusive to the pkgbase section in SRCINFO data.
SourceProperty
Properties related to package sources.

Functions§

architecture_suffix
Recognizes and returns the architecture suffix of a keyword, if it exists.
delimiter 🔒
Recognizes the = delimiter between keywords.
till_line_end 🔒
Recognizes all content until the end of line.