MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / NewParser

Function NewParser

pkg/filter/ql/parser.go:44–46  ·  view source on GitHub ↗

NewParser builds a new parser instance from the expression string.

(expr string)

Source from the content-addressed store, hash-verified

42
43// NewParser builds a new parser instance from the expression string.
44func NewParser(expr string) *Parser {
45 return &Parser{s: newBufScanner(strings.NewReader(expr)), expr: expr}
46}
47
48// NewParserWithConfig builds a new parser instance with filters config.
49func NewParserWithConfig(expr string, config *config.Filters) *Parser {

Callers 8

NewFunction · 0.92
TestParserFunction · 0.85
TestParseUnaryExprFunction · 0.85
TestParseSequenceFunction · 0.85
TestIsSequenceUnorderedFunction · 0.85
TestParseFunctionFunction · 0.85

Calls 1

newBufScannerFunction · 0.85

Tested by 6

TestParserFunction · 0.68
TestParseUnaryExprFunction · 0.68
TestParseSequenceFunction · 0.68
TestIsSequenceUnorderedFunction · 0.68
TestParseFunctionFunction · 0.68