MCPcopy Create free account
hub / github.com/brimdata/super / ParseText

Function ParseText

compiler/parser/api.go:47–49  ·  view source on GitHub ↗

ParseText parses a query text in string form.

(text string)

Source from the content-addressed store, hash-verified

45
46// ParseText parses a query text in string form.
47func ParseText(text string) (*AST, error) {
48 return ParseFiles(srcfiles.Plain(text))
49}
50
51// ParseFiles parses a query text comprised of a mixture of plain text
52// and source files, tracking file names and line numbers for error reporting.

Callers 13

runOneBoomerangFunction · 0.92
runFunction · 0.92
parseFunction · 0.92
VectorFilterCompileFunction · 0.92
parseOpFunction · 0.92
AnalyzeFunction · 0.92
handleQueryFunction · 0.92
handleCompileFunction · 0.92
handleDeleteFunction · 0.92
runCasesHelperFunction · 0.92
TestBadFilterFunction · 0.92

Calls 2

PlainFunction · 0.92
ParseFilesFunction · 0.85

Tested by 5

runOneBoomerangFunction · 0.74
parseOpFunction · 0.74
runCasesHelperFunction · 0.74
TestBadFilterFunction · 0.74