zclwrite: Rename "Parse" to "ParseConfig"

This is mainly for symmetry with the API of zclsyntax, but also later
we'll probably have a ParseExpression function that can be used to make
edits to individual expressions.
This commit is contained in:
Martin Atkins 2017-06-07 08:28:43 -07:00
parent 13c93e974f
commit 7609327736

View File

@ -6,10 +6,10 @@ import (
"github.com/zclconf/go-zcl/zcl" "github.com/zclconf/go-zcl/zcl"
) )
// Parse interprets the given source bytes into a writer AST. The resulting AST // ParseConfig interprets the given source bytes into a *zclwrite.File. The
// can be used to perform surgical edits on the source code before turning // resulting AST can be used to perform surgical edits on the source code
// it back into bytes again. // before turning it back into bytes again.
func Parse(src []byte, filename string, start zcl.Pos) (*File, zcl.Diagnostics) { func ParseConfig(src []byte, filename string, start zcl.Pos) (*File, zcl.Diagnostics) {
return parse(src, filename, start) return parse(src, filename, start)
} }