node-dextrin - v0.1.0
    Preparing search index...

    Function isBareIdentifier

    • 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.

      Parameters

      • name: string

      Returns boolean