gram/docs/technical/README.md

982 B

Technical Documentation

This directory contains internal documentation intended for developers contributing to the GRAM language compiler or building tools on top of it.

Contents

  • Parsing Architecture

    • Detailed breakdown of the 3-stage pipeline: Parsing (OhmJS), AST Generation, and Compilation.
    • Explanation of section scopes, stack logic, and the central registry.
  • JSON Output Schema

    • Reference guide for the JSON structure generated by the compiler.
    • Useful for frontend developers displaying recipes.
  • Ingredient database

    • Reference guide for the ingredient database.
    • Details on how the database is structured and used by the compiler.
  • Compiler Options

    • Configuration guide for enabling/disabling experimental features.
    • Details on feature gating and pruning logic.