gram/docs/compiler_features
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-01-06 21:12:24 +01:00
..
01_mass_unification.md docs: Added warning about ingredients database source 2026-01-06 18:51:53 +01:00
02_yield_management.md docs: Big docs reorganization + multiple error corrections 2026-01-06 21:12:24 +01:00
03_nutritional_estimation.md docs: Big docs reorganization + multiple error corrections 2026-01-06 21:12:24 +01:00
04_time_and_scheduling.md docs: Big docs reorganization + multiple error corrections 2026-01-06 21:12:24 +01:00
05_shopping_list_logic.md docs: Big docs reorganization + multiple error corrections 2026-01-06 21:12:24 +01:00
README.md docs: Big docs reorganization + multiple error corrections 2026-01-06 21:12:24 +01:00

Compiler Features

This directory documents the "Smart" logic of the GRAM compiler. These features go beyond simple parsing to provide advanced culinary intelligence.

Contents

  • Mass Unification

    • How the compiler normalizes all units (cups, tbsp, pieces) into grams to allow mass calculation.
    • Includes logic for density database and user overrides.
  • Yield Management

    • Distinguishing between Net Mass (what goes in the pot) and Purchasing Mass (what you buy).
    • Waste factor calculations.
  • Nutritional Estimation

    • Automatic calculation of calories and macronutrients (Protein, Carbs, Fat, Sugar, Fiber, Salt).
    • Coverage analysis and data source transparency.
  • Time Metrics & Scheduling

    • Active Time vs Total Time.
    • Asynchronous Background Tasks (e.g., rising, marinating).
    • Retro-planning logic.
    • Automated Preparation Time (Mise en place) estimation.
  • Shopping List Generation

    • The complex logic behind merging ingredients.
    • Handling Alternatives.
    • Resolving Composite Ingredients (Driver/Passenger MAX rule).
    • Ghost Reference detection.