# Parser

Parses query string by first splitting it into tokens and then matching and consuming tokens to create an abstract syntax tree (AST) of matching nodes

****

- Since [5.1.0](https://github.com/getkirby/kirby/releases/tag/5.1.0)
- Full class name: `Kirby\Query\Parser\Parser`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Query/Parser/Parser.php#L34>

<unstable-notice>
`Parser` has been **marked as unstable**. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
</unstable-notice>

****

### Parser

- [new Parser()](https://getkirby.com/docs/reference/objects/query-parser/parser/__construct.md)
- [$parser->current()](https://getkirby.com/docs/reference/objects/query-parser/parser/current.md)
- [$parser->parse()](https://getkirby.com/docs/reference/objects/query-parser/parser/parse.md)