func Parse(data []byte) (*ast.Table, error) {
	d := &parseState{p: &tomlParser{Buffer: string(data)}}
	d.init()
	if err := d.parse(); err != nil {
		return nil, err
	}
	return d.p.toml.table, nil
}
Parse returns an AST representation of TOML.
The toplevel is represented by a table.
package toml
import (
	"errors"
	"fmt"
	"strconv"
	"strings"
	"github.com/naoina/toml/ast"
)
var errParse = errors.New("invalid TOML syntax")