Documentation ¶
Overview ¶
Package pkgbuild provides a lexer and parser for pkgbuild files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans for tokens
func NewScanner ¶
NewScanner creates a new scanner instance
type TokenType ¶
type TokenType int
TokenType is the set of lexical tokens of the PKGBUILD format.
const ( ILLEGAL TokenType = iota EOF // Errors or end of file EOL // end of line handle both \r\n and \n WS // one or more whitespaces COMMENT // comments NAME // variable name VALUE // variable value ARRAY // variable array value EQUAL // variable equals VARIABLE // parent token composed of NAME, EQUAL, VALUE/ARRAY )
List of token types
Click to show internal directories.
Click to hide internal directories.