OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::metadata::Parser Class Reference

Parse textual queries into an expression AST. More...

#include <parser.hpp>

Public Member Functions

OXYCORE_API ExprNode parse (std::string_view input)
 Parse the input query string into an AST.

Detailed Description

Parse textual queries into an expression AST.

The parser supports:

  • Dotted paths with quoted segments
  • Operators: = (alias :), !=, <, <=, >, >=, like
  • Value-level groups via parentheses with and/or/not
  • Expression-level grouping with parentheses with and/or/not

On error, throws ParseError. On success, returns a valid ExprNode.

Note
The parser trims outer double quotes when the whole input is quoted; this matches typical shell usage where you pass "...query..." as one arg.

Member Function Documentation

◆ parse()

OXYCORE_API ExprNode oxy::core::metadata::Parser::parse ( std::string_view input)

Parse the input query string into an AST.

Parameters
inputA string_view of the query DSL.
Returns
ExprNode representing the parsed AST.
Exceptions
ParseErrorwhen parsing fails.