Skip to main content

Module parser

Module parser 

Source
Expand description

Query parser — converts query strings into an AST.

Structs§

Comparison
비교식: IDENTIFIER compare_op value
GroupAggregate
GROUP BY 집계 연산 정의
Path
경로: . + 세그먼트들
Query
쿼리 AST (Abstract Syntax Tree)
SelectExpr
SELECT 절의 컬럼 표현식

Enums§

AggregateFunc
Aggregate function used in group_by operations.
CompareOp
Comparison operator used in where conditions.
Condition
Boolean condition used in where clauses.
Expr
Expression used in select clauses and function arguments.
LiteralValue
Literal value used as a comparison operand or in expressions.
Operation
Pipeline operation applied after path navigation (e.g., | where ..., | sort ...).
Segment
A single segment of a navigation path.

Functions§

parse_condition_expr
where 절의 조건식만 파싱하는 편의 함수 예: “age > 30 and city == "Seoul"”
parse_query
편의 함수: 쿼리 문자열 → Query