2.8 KiB
2.8 KiB
GRAM Language Documentation
Quick info
- Cheatsheet - One-page syntax summary.
- Best Practices - Style guide and recommendations.
Syntax Reference
The core language specification and usage guides.
- Overview - A high-level tour of the GRAM language.
- Structure - Headers, steps, comments and metadata blocks.
- Ingredients - Syntax, quantities, modifiers (
@?,@-,@*) and preparations. - Cookware - Fixed vs Scalable tools, dimensions and materials.
- Time & Temperature - Timers (
~), temperatures (!) and async tasks. - Advanced Features - Alternatives (
|) and Inline Preps. - Relative Quantities - Dynamic calculations (e.g.
60% @flour). - Variables & Intermediate - Using
->&doughto chain recipe parts. - Composites - Driver/Passenger logic (
<).
Advanced Calculations & Capabilities
Detailed explanation of compiler and analyzer features.
- Features Overview - Split between compile-time and analysis-time computations.
- Shopping List Generation - Aggregation, alternatives, and ghost references.
- Time Metrics & Scheduling - Active Time, Total Time, and Retro-planning.
- Mass Normalization - How units are resolved to grams.
- Yield Management - Net vs Gross weight (Waste factor).
- Nutritional Estimation - Calorie and Macro calculation.
Technical & Architecture
For contributors and developers implementing GRAM:
- Parsing Architecture - The 4-stage pipeline and execution logic.
- JSON Output Schema - Structural vs analyzed JSON output.
- Options & Config - Compiler and analyzer configurations.
- Ingredient Database - Format and density mapping schema.
- Development Environment - Monorepo architecture, validation, and testing logic.
Helpers
Some vocabulary to help writing recipes. Currently only available in French.