OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
ast.hpp File Reference

Abstract syntax tree (AST) definitions for the query language. More...

Classes

 Logical AND across expression-level nodes. More...
 Logical AND across value-level nodes. More...
 Logical OR across expression-level nodes. More...
 Logical OR across value-level nodes. More...
 Variant for expression-level boolean expressions. More...
 A single field comparison against one or more values. More...
 Logical negation of an expression-level node. More...
 Logical negation of a value-level node. More...
 A single scalar token appearing as a value in the query. More...
 Variant for value-level boolean expressions. More...

Namespaces

namespace  oxy
 This root namespace contains the common types and operations for the OXY-API library.
namespace  oxy::core
 This namespace contains core types and operations for the OXY-API library.

Enumerations

enum class  oxy::core::metadata::CompareOp {
  Eq , Ne , Lt , Le ,
  Gt , Ge , Like
}
 Comparison operators supported by the query language. More...

Detailed Description

Abstract syntax tree (AST) definitions for the query language.

The AST models two levels of boolean expressions:

  • Expression-level (field conditions combined with AND/OR/NOT)
  • Value-level (values combined with AND/OR/NOT for a single field/operator)

The grammar supports:

  • Dotted/quoted field paths (e.g., user."first-name")
  • Operators: = (alias :), !=, <, <=, >, >=, like
  • Parentheses and boolean composition with and/or/not

This header contains only data types; parsing and SQL emission live elsewhere.

Enumeration Type Documentation

◆ CompareOp

enum class oxy::core::metadata::CompareOp
strong

Comparison operators supported by the query language.

Enumerator
Eq 

Equality, written as '=' or ':' in the query

Ne 

Inequality, '!='

Lt 

Less-than, '<'

Le 

Less-than-or-equal, '<='

Gt 

Greater-than, '>'

Ge 

Greater-than-or-equal, '>='

Like 

String match using SQL LIKE semantics