readability updates: remove magic numbers, update comments

This commit is contained in:
Aaron Po
2026-05-01 17:38:16 -04:00
parent 9051f55114
commit 91e18888fe
15 changed files with 68 additions and 43 deletions

View File

@@ -33,6 +33,8 @@ static std::string FormatLocalLanguageCodes(
return formatted;
}
// GBNF grammar for structured brewery JSON output.
// @TODO move to a separate gbnf file if it grows in complexity or is shared across modules.
static constexpr std::string_view kBreweryJsonGrammar = R"json_brewery(
root ::= thought-block "{" ws "\"name_en\"" ws ":" ws string ws "," ws "\"description_en\"" ws ":" ws string ws "," ws "\"name_local\"" ws ":" ws string ws "," ws "\"description_local\"" ws ":" ws string ws "}" ws
thought-block ::= [^{]*