From 7eaf5f9555c3b75ccc0a6623b518081127f4832a Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 1 Nov 2026 13:17:32 -0500 Subject: [PATCH] Add background grammar rule --- src/fart.propane | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/fart.propane b/src/fart.propane index 6b2b26c..caa200d 100644 --- a/src/fart.propane +++ b/src/fart.propane @@ -2,6 +2,7 @@ tree; drop /\s+/; +token background; token comma /,/; token gt />/; token height; @@ -15,20 +16,21 @@ token width; token uint /\d+/; token number /-?\d+(\.\d+)?/; -Start -> Options? Scene; +Start -> RenderParams Scene; + +Background -> background Vector; Height -> height uint; Number -> uint; Number -> number; -Options -> options lcurly OptionsItems rcurly; +RenderParams -> ; +RenderParams -> RenderParam RenderParams; -OptionsItems -> ; -OptionsItems -> OptionsItem OptionsItems; - -OptionsItem -> Height; -OptionsItem -> Width; +RenderParam -> Background; +RenderParam -> Height; +RenderParam -> Width; Scene -> scene lcurly SceneItems rcurly;