Expand description
areev-cal — CAL (Context Assembly Language) for Areev.
CAL implementation: lexer, parser, AST, executor,
ASSEMBLE engine, templates, saved queries, executed against the
embedded Turso store through AreevFacade. The Postgres facade and
recursive-SQL graph module are intentionally not ported.
Re-exports§
pub use executor::CalExecutor;pub use executor::CalExecutorConfig;pub use facade::CalStoreFacade;pub use areev_facade::AreevFacade;pub use parser::parse;
Modules§
- areev_
facade - AreevFacade — CalStoreFacade over the embedded areev-store.
- assemble
- ASSEMBLE engine — multi-source context assembly with budget allocation.
- ast
- CAL Abstract Syntax Tree types.
- classify
- The single source of truth for what kind of statement a piece of CAL is.
- errors
- CAL error model — ~30 error codes for Phase 1 (Core conformance).
- executor
- CAL executor — runs parsed CAL queries against a
CalStoreFacade. - facade
- CalStoreFacade — constrained store interface for CAL query execution.
- governance
- The governance seam (CAL 1.3 §8.16) — how loop lifecycle statements
reach the Areev Loop engine without
areev-caldepending on it. - humanize
- Content projection — relation and time humanization for CAL output.
- json
- JSON wire format for CAL (
application/json+cal). - json_
build - JSON → typed grain construction (the engine write path). Used by the CAL facade for ADD / SUPERSEDE tier-1 statements.
- lexer
- CAL lexer — Logos-derived DFA tokenizer for Context Assembly Language.
- parser
- CAL recursive-descent parser.
- queries
- Saved query registry — stores and manages named, parameterized CAL queries.
- relations
- mg: relation vocabulary and IS CATEGORY expansion.
- render
- The one per-grain rendering implementation, shared by every surface.
- store_
types - Engine query/response types.
- templates
- CAL Phase 4 — Template engine for formatting grain result sets.