TOC Toolkit API - v0.1.0
    Preparing search index...

    Function readWord

    • Reads a word that a user typed. The text is read in the first way that applies.

      • A text with white space, or one that starts with a quote mark, is a list of symbols.
      • The empty text is the empty word, and so is a bare ε. A symbol named ε is typed in quotes.
      • A text that is one symbol of the alphabet is that symbol.
      • Any other text is split from left to right into the longest symbols of the alphabet. A character at which no symbol starts is taken alone.

      A symbol that the alphabet lacks is an issue with its place in the text.

      Parameters

      Returns Result<Word, readonly (QuoteIssue | WordIssue | SymbolListIssue)[]>