Skip to main content

Module parser

Module parser 

Source
Expand description

Pest-driven Cypher parser: lower a raw query string into a lora_ast::Document.

Layout:

  • query — top-of-tree query-shape lowerings (regular_query, single_query, multi_part_query, query_part, single_part_query, reading_clause, updating_clause).
  • clauses — clause-level lowerings (MATCH, UNWIND, CREATE, MERGE, DELETE, SET, REMOVE, CALL, YIELD, WITH, WHERE, RETURN, projection body / items, ORDER BY, sort items).
  • patterns — graph-pattern lowerings (pattern, pattern part, shortest-path pattern, pattern element + chain, node / relationship patterns, range literals, properties).
  • expressions — operator-precedence chain from expression down through comparison / add / mul / pow / unary / postfix and CASE.
  • literals — leaves of the expression tree: literals, strings, maps, lists, comprehensions, parameters, list predicates, REDUCE, EXISTS subqueries, function calls, name-part / variable / symbolic / schema-name / integer-literal lowerings.
  • util — small helpers shared across the lowerings (single_inner, pair_span, merge_spans, unexpected_rule).
  • tests — unit tests covering the parser surface.

Enums§

Rule

Functions§

parse_query