Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanBareIdent ¶
func ScanBareIdent(r io.RuneScanner) string
ScanBareIdent reads bare identifier from a rune reader.
func ScanDelimited ¶
func ScanString ¶
func ScanString(r io.RuneScanner) (string, error)
ScanString reads a quoted string from a rune reader.
Types ¶
type Dependency ¶
type Dependency struct { Name string Constraint version.Constraints // ... maybe look at hashi version.Constraint }
type Metadata ¶
type Metadata struct { Depends []Dependency Name string Version version.Version }
Metadata represents a coookbook metadata file
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser.
type Pos ¶
Pos specifies the line and character position of a token. The Char and Line are both zero-based indexes.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner represents a lexical scanner
func NewScanner ¶
NewScanner returns a new instance of Scanner.
type Token ¶
type Token int
const ( // Special tokens ILLEGAL Token = iota EOF WS // operators ADD // + SUB // - MUL // * DIV // / // Verion Specifiers EQ // = LT // < LTE // <= GT // > GTE // >= PGT // ~> the pessimistic gt // Literals IDENT STRING BADSTRING BADESCAPE TRUE FALSE // Misc Characters COMMENT COMMA // , //Keywords VERSION NAME DEPENDS )
Click to show internal directories.
Click to hide internal directories.