MCPcopy Create free account
hub / github.com/docopt/docopt.go / tokenListFromString

Function tokenListFromString

docopt.go:497–499  ·  view source on GitHub ↗
(source string)

Source from the content-addressed store, hash-verified

495}
496
497func tokenListFromString(source string) *tokenList {
498 return newTokenList(strings.Fields(source), errorUser)
499}
500
501func tokenListFromPattern(source string) *tokenList {
502 p := regexp.MustCompile(`([\[\]\(\)\|]|\.\.\.)`)

Callers 1

TestParseArgvFunction · 0.85

Calls 1

newTokenListFunction · 0.85

Tested by 1

TestParseArgvFunction · 0.68