1 // Package ini is an LL(1) parser for configuration files.
4 // sections, err := ini.OpenFile("/path/to/file")
10 // section, ok := sections.GetSection(profile)
12 // fmt.Printf("section %q could not be found", profile)
15 // Below is the BNF that describes this parser
17 // stmt -> value stmt'
18 // stmt' -> epsilon | op stmt
19 // value -> number | string | boolean | quoted_string
21 // section -> [ section'
22 // section' -> value section_close
25 // SkipState will skip (NL WS)+
27 // comment -> # comment' | ; comment'
28 // comment' -> epsilon | value