parser

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser is the collection responsible for decoding an input string into a package struct.

func (*Parser) Parse

func (p *Parser) Parse(scnr scanner.Scanner, result *pkg.Package) (err error)

Parse decodes the information from a scanner into a package struct.

func (*Parser) ParseBoolean added in v0.1.4

func (p *Parser) ParseBoolean() (result string, err error)

ParseBoolean parses and returns the value of a boolean.

func (*Parser) ParseBracket added in v0.1.8

func (p *Parser) ParseBracket() (err error)

ParseBracket parses and returns the full contents of a string.

func (*Parser) ParseBranch added in v0.1.4

func (p *Parser) ParseBranch() (result string, err error)

ParseBranch returns the value of the branch variable.

func (*Parser) ParseClass

func (p *Parser) ParseClass() (err error)

ParseClass handles the specific parsing of a package class.

func (*Parser) ParseClassName

func (p *Parser) ParseClassName() (err error)

ParseClassName take care of parsing the name of a package.

func (*Parser) ParseCommit added in v0.2.2

func (p *Parser) ParseCommit() (result string, err error)

ParseExpand returns the value of the expand variable.

func (*Parser) ParseDependency added in v0.2.0

func (p *Parser) ParseDependency() (result string, err error)

ParseDependency returns a list of strings of dependency packages.

func (*Parser) ParseExpand added in v0.1.5

func (p *Parser) ParseExpand() (result string, err error)

ParseExpand returns the value of the expand variable.

func (*Parser) ParseExtension added in v0.2.9

func (p *Parser) ParseExtension() (result string, err error)

ParseExtension returns the value of the branch variable.

func (*Parser) ParseFunction

func (p *Parser) ParseFunction() (result string, err error)

ParseFunction returns a string of the build instruction function.

func (*Parser) ParseGitURL added in v0.1.5

func (p *Parser) ParseGitURL() (result string, err error)

ParseGitURL returns the value of the url variable.

func (*Parser) ParseHomepage

func (p *Parser) ParseHomepage() (result string, err error)

ParseHomepage returns the value of the homepage variable.

func (*Parser) ParseList added in v0.2.6

func (p *Parser) ParseList() (result []string, err error)

ParseList parses and returns the full contents of a string.

func (*Parser) ParseMaintainers added in v0.2.6

func (p *Parser) ParseMaintainers() (result []string, err error)

ParseMaintainers returns the value of the homepage variable.

func (*Parser) ParseString

func (p *Parser) ParseString() (result string, err error)

ParseString parses and returns the full contents of a string.

func (*Parser) ParseSubmodule added in v0.1.4

func (p *Parser) ParseSubmodule() (result string, err error)

ParseSubmodule returns the value of the branch variable.

func (*Parser) ParseTag added in v0.2.9

func (p *Parser) ParseTag() (result string, err error)

ParseTag returns the value of the branch variable.

func (*Parser) ParseURL

func (p *Parser) ParseURL() (result string, err error)

ParseURL returns the value of the url variable.

func (*Parser) ParseVersion

func (p *Parser) ParseVersion() (result pkg.Version, err error)

ParseVersion returns the value of a version tuple.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL