chore: format

This commit is contained in:
Edward Langley
2026-04-13 21:30:37 -07:00
parent af74dc3d3f
commit 6370f8b19f
19 changed files with 445 additions and 249 deletions

View File

@ -36,31 +36,61 @@ fn load_grammar() -> HashMap<String, (RuleType, Expr)> {
// ── Word pools for realistic output ─────────────────────────────────────────
const BARE_WORDS: &[&str] = &[
"Region", "Product", "Customer", "Channel", "Date",
"North", "South", "East", "West",
"Revenue", "Cost", "Profit", "Margin",
"Widgets", "Gadgets", "Sprockets",
"Q1", "Q2", "Q3", "Q4",
"Jan", "Feb", "Mar", "Apr",
"Acme", "Globex", "Initech", "Umbrella",
"Region",
"Product",
"Customer",
"Channel",
"Date",
"North",
"South",
"East",
"West",
"Revenue",
"Cost",
"Profit",
"Margin",
"Widgets",
"Gadgets",
"Sprockets",
"Q1",
"Q2",
"Q3",
"Q4",
"Jan",
"Feb",
"Mar",
"Apr",
"Acme",
"Globex",
"Initech",
"Umbrella",
];
const QUOTED_WORDS: &[&str] = &[
"Total Revenue", "Net Income", "Gross Margin",
"2025-01", "2025-02", "2025-03",
"East Coast", "West Coast",
"Acme Corp", "Globex Inc",
"Cost of Goods", "Operating Expense",
"Total Revenue",
"Net Income",
"Gross Margin",
"2025-01",
"2025-02",
"2025-03",
"East Coast",
"West Coast",
"Acme Corp",
"Globex Inc",
"Cost of Goods",
"Operating Expense",
];
const MODEL_NAMES: &[&str] = &[
"Sales Report", "Budget 2025", "Quarterly Review",
"Inventory Model", "Revenue Analysis", "Demo Model",
"Sales Report",
"Budget 2025",
"Quarterly Review",
"Inventory Model",
"Revenue Analysis",
"Demo Model",
];
const VIEW_NAMES: &[&str] = &[
"Default", "Summary", "Detail", "By Region", "Monthly",
];
const VIEW_NAMES: &[&str] = &["Default", "Summary", "Detail", "By Region", "Monthly"];
const FORMULA_EXPRS: &[&str] = &[
"Profit = Revenue - Cost",
@ -70,9 +100,7 @@ const FORMULA_EXPRS: &[&str] = &[
"Net = Revenue - Cost - Tax",
];
const FORMAT_STRINGS: &[&str] = &[
",.0", ",.2f", ",.1f", ".0%",
];
const FORMAT_STRINGS: &[&str] = &[",.0", ",.2f", ",.1f", ".0%"];
// ── PRNG ────────────────────────────────────────────────────────────────────