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

Function NewParserWithConfig

pkg/filter/ql/parser.go:49–51  ·  view source on GitHub ↗

NewParserWithConfig builds a new parser instance with filters config.

(expr string, config *config.Filters)

Source from the content-addressed store, hash-verified

47
48// NewParserWithConfig builds a new parser instance with filters config.
49func NewParserWithConfig(expr string, config *config.Filters) *Parser {
50 return &Parser{s: newBufScanner(strings.NewReader(expr)), expr: expr, c: config}
51}
52
53// ParseSequence parses the collection of binary expressions with possible join
54// statements and time frame constraints. This method assumes the SEQUENCE token

Callers 3

NewFunction · 0.92
TestExpandMacrosFunction · 0.85
parseUnaryExprMethod · 0.85

Calls 1

newBufScannerFunction · 0.85

Tested by 1

TestExpandMacrosFunction · 0.68