MCPcopy Create free account
hub / github.com/drone/envsubst / Parse

Method Parse

parse/parse.go:44–48  ·  view source on GitHub ↗

Parse parses the string buffer to construct an ast representation for expansion.

(buf string)

Source from the content-addressed store, hash-verified

42// Parse parses the string buffer to construct an ast
43// representation for expansion.
44func (t *Tree) Parse(buf string) (tree *Tree, err error) {
45 t.scanner.init(buf)
46 t.Root, err = t.parseAny()
47 return t, err
48}
49
50func (t *Tree) parseAny() (Node, error) {
51 t.scanner.accept = acceptRune

Callers 1

ParseFunction · 0.80

Calls 2

parseAnyMethod · 0.95
initMethod · 0.80

Tested by

no test coverage detected