Akar Parser
Cypher query parser using pest.rs PEG grammar.
Supported syntax:
CREATE NODE TABLE/CREATE REL TABLE/DROP TABLECOPY FROMwith options (header, delimiter, quote, escape)MATCH/OPTIONAL MATCHwith node and edge patternsWHERE/HAVINGwith boolean expressionsRETURN/WITHwith expressions, aliases, orderingORDER BY/LIMIT/OFFSET/SKIPDELETE/SETALTER TABLE(ADD/DROP/RENAME COLUMN, RENAME TABLE)UNION ALLUNWINDexpression AS variableCREATE(node patterns with properties)- Full operator precedence (OR, AND, NOT, comparison, arithmetic, unary)
- Literals: strings, integers, floats, booleans, null, lists, maps, parameters
- Function calls with arguments
- Property access (
a.name)
AST types: 33 Statement variants, 10 Clause variants, Expression enum with 10 variants, Constant with 7 variants.
Tests: 67