mirror of https://github.com/prometheus/prometheus
32b7595c47
This commit creates a (so far unused) package. It contains the a custom lexer/parser for the query language. ast.go: New AST that interacts well with the parser. lex.go: Custom lexer (new). lex_test.go: Lexer tests (new). parse.go: Custom parser (new). parse_test.go: Parser tests (new). functions.go: Changed function type, dummies for parser testing (barely changed/dummies). printer.go: Adapted from rules/ and adjusted to new AST (mostly unchanged, few additions). |
||
---|---|---|
.. | ||
labelpair.go | ||
labelpair_test.go | ||
matcher.go | ||
sample.go |