Whether name is a valid bare identifier (DXN.md §1.1) on its
own — the one thing that decides whether a keyword/field name can
use map_entry's colon-shorthand at all, or must fall back to the
quoted arrow form. Reuses the real tokenizer rather than a
hand-rolled regex, mirroring Dextrin.Text.Printer.bare_identifier?/1
reusing Dextrin.Text.Grammar.tokenize/1 for the same reason: one
source of truth for what an identifier is, not two that can drift.
Whether
nameis a valid bareidentifier(DXN.md§1.1) on its own — the one thing that decides whether a keyword/field name can usemap_entry's colon-shorthand at all, or must fall back to the quoted arrow form. Reuses the real tokenizer rather than a hand-rolled regex, mirroringDextrin.Text.Printer.bare_identifier?/1reusingDextrin.Text.Grammar.tokenize/1for the same reason: one source of truth for what an identifier is, not two that can drift.