-
Notifications
You must be signed in to change notification settings - Fork 1
aql_parser.cpp
GitHub Actions edited this page Jan 2, 2026
·
1 revision
Stand: 5. Dezember 2025
Version: 1.0.0
Kategorie: Src
Path: src/query/aql_parser.cpp
Purpose: Parses AQL queries into AST. Should include grammar details and handling of FULLTEXT tokens.
Public functions / symbols:
- ``
if (token.type != TokenType::INVALID) {if (ch == ' ') {if (ch == '"' || ch == '\'') {if (quote != '"' && quote != '\'') {switch (next) {switch (ch) {for (const auto& token : tokens_) {if (token.type == TokenType::INVALID) {if (lastTraversal_) {while (true) {if constexpr (std::is_same_v<T, std::nullptr_t>) {switch (op) {for (const auto& arg : arguments) {for (const auto& elem : elements) {for (const auto& [key, value] : fields) {skipWhitespace();advance();return readString(start_line, start_column);return readNumber(start_line, start_column);return readIdentifierOrKeyword(start_line, start_column);return readOperatorOrPunctuation(start_line, start_column);advance(); // Skip opening quoteadvance(); // Skip closing quoteadvance(); advance();return Token(TokenType::INVALID, "===", line, col);return Token(TokenType::EQ, "==", line, col);return Token(TokenType::NEQ, "!=", line, col);return Token(TokenType::LTE, "<=", line, col);return Token(TokenType::GTE, ">=", line, col);expect(TokenType::END_OF_FILE, "Expected end of query");expect(TokenType::FOR, "Expected FOR");advance(); // first '.'advance(); // second '.'expect(TokenType::GRAPH, "Expected GRAPH keyword in traversal");expect(TokenType::LET, "Expected LET");expect(TokenType::ASSIGN, "Expected '=' after variable name in LET");expect(TokenType::FILTER, "Expected FILTER");expect(TokenType::SORT, "Expected SORT");expect(TokenType::COMMA, "Expected comma");expect(TokenType::LIMIT, "Expected LIMIT");expect(TokenType::RETURN, "Expected RETURN");expect(TokenType::COLLECT, "Expected COLLECT");expect(TokenType::ASSIGN, "Expected '=' after group variable in COLLECT");expect(TokenType::ASSIGN, "Expected '=' in aggregation assignment");expect(TokenType::LPAREN, "Expected '(' after aggregation function");return parseLogicalOr();expect(TokenType::COLON, "Expected ':' after object key");expect(TokenType::RBRACE, "Expected '}' at end of object");advance(); // empty object {}
ThemisDB v1.3.4 | GitHub | Documentation | Discussions | License
Last synced: January 02, 2026 | Commit: 6add659
Version: 1.3.0 | Stand: Dezember 2025
- Übersicht
- Home
- Dokumentations-Index
- Quick Reference
- Sachstandsbericht 2025
- Features
- Roadmap
- Ecosystem Overview
- Strategische Übersicht
- Geo/Relational Storage
- RocksDB Storage
- MVCC Design
- Transaktionen
- Time-Series
- Memory Tuning
- Chain of Thought Storage
- Query Engine & AQL
- AQL Syntax
- Explain & Profile
- Rekursive Pfadabfragen
- Temporale Graphen
- Zeitbereichs-Abfragen
- Semantischer Cache
- Hybrid Queries (Phase 1.5)
- AQL Hybrid Queries
- Hybrid Queries README
- Hybrid Query Benchmarks
- Subquery Quick Reference
- Subquery Implementation
- Content Pipeline
- Architektur-Details
- Ingestion
- JSON Ingestion Spec
- Enterprise Ingestion Interface
- Geo-Processor Design
- Image-Processor Design
- Hybrid Search Design
- Fulltext API
- Hybrid Fusion API
- Stemming
- Performance Tuning
- Migration Guide
- Future Work
- Pagination Benchmarks
- Enterprise README
- Scalability Features
- HTTP Client Pool
- Build Guide
- Implementation Status
- Final Report
- Integration Analysis
- Enterprise Strategy
- Verschlüsselungsstrategie
- Verschlüsselungsdeployment
- Spaltenverschlüsselung
- Encryption Next Steps
- Multi-Party Encryption
- Key Rotation Strategy
- Security Encryption Gap Analysis
- Audit Logging
- Audit & Retention
- Compliance Audit
- Compliance
- Extended Compliance Features
- Governance-Strategie
- Compliance-Integration
- Governance Usage
- Security/Compliance Review
- Threat Model
- Security Hardening Guide
- Security Audit Checklist
- Security Audit Report
- Security Implementation
- Development README
- Code Quality Pipeline
- Developers Guide
- Cost Models
- Todo Liste
- Tool Todo
- Core Feature Todo
- Priorities
- Implementation Status
- Roadmap
- Future Work
- Next Steps Analysis
- AQL LET Implementation
- Development Audit
- Sprint Summary (2025-11-17)
- WAL Archiving
- Search Gap Analysis
- Source Documentation Plan
- Changefeed README
- Changefeed CMake Patch
- Changefeed OpenAPI
- Changefeed OpenAPI Auth
- Changefeed SSE Examples
- Changefeed Test Harness
- Changefeed Tests
- Dokumentations-Inventar
- Documentation Summary
- Documentation TODO
- Documentation Gap Analysis
- Documentation Consolidation
- Documentation Final Status
- Documentation Phase 3
- Documentation Cleanup Validation
- API
- Authentication
- Cache
- CDC
- Content
- Geo
- Governance
- Index
- LLM
- Query
- Security
- Server
- Storage
- Time Series
- Transaction
- Utils
Vollständige Dokumentation: https://makr-code.github.io/ThemisDB/