Skip to main content

Module parser

Module parser 

Source
Expand description

Parser for Forge .forge.html files. Produces a flat token stream that the lowering pass converts to Askama syntax.

We use a simple linear scanner rather than chumsky here because Forge’s grammar is mostly token-by-token rewrites — a recursive parser would be overkill and harder to debug for the POC.

Enums§

Token

Functions§

tokenize