Markus Maiwald
|
7077e37c06
|
fix(gql): fix all Zig 0.15.2 API breaking changes for GQL parser
- ArrayList: init(), append(allocator, item), deinit(allocator)
- Fixed errdefer const qualifier issues with mutable variables
- Fixed all AST struct deinit() calls (no allocator needed)
- All 6 GQL parser tests now passing
Lexer: 4/4 tests
Parser: 2/2 tests
|
2026-02-03 11:04:30 +01:00 |
Markus Maiwald
|
c944e08202
|
feat(qvl): add GQL parser (ISO 39075) - Sprint 2 WIP
Add Graph Query Language parser components:
- gql/ast.zig: AST types (Query, Match, Create, Return, etc.)
- gql/lexer.zig: Tokenizer with ISO 39075 keywords
- gql/parser.zig: Recursive descent parser
- gql.zig: Module entry point with parse() function
Supports:
- MATCH, CREATE, DELETE, RETURN statements
- Node and Edge patterns with properties
- Variable length paths (*1..3 quantifiers)
- WHERE clauses with AND/OR logic
- Property comparisons (=, <>, <, <=, >, >=)
Note: Tests need Zig API updates (ArrayList changes)
Part of Sprint 2: GQL Parser.
|
2026-02-03 09:59:50 +01:00 |