NewParser builds a new parser instance from the expression string.
(expr string)
| 42 | |
| 43 | // NewParser builds a new parser instance from the expression string. |
| 44 | func 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. |
| 49 | func NewParserWithConfig(expr string, config *config.Filters) *Parser { |