package parser import "git.makaay.nl/mauricem/go-parsekit" // Item types that are produced by this parser. const ( ItemComment parsekit.ItemType = iota // Comment string ItemKey // Key of a key/value pair ItemKeyDot // Dot for a dotted key ItemAssignment // Value assignment coming up (=) ItemString // A value of type string ) var ( c, a, m = parsekit.C, parsekit.A, parsekit.M ) var parser = parsekit.NewParser(startKeyValuePair) // Parse starts the parser for the provided input string. func Parse(input string) *parsekit.ParseRun { return parser.Parse(input) }