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

    toc-toolkit/symbols

    The alphabets and words of the workspace, the special symbols of its notations, and a kit for the lexers of the syntax packages. It reads and writes a symbol in one way, so every notation quotes a symbol alike.

    • Longest-symbol word reading. Reads a typed word against an alphabet by splitting it from left to right into the longest symbols, and reports each foreign symbol with its span. (readWord, formatWord)
    • Shortlex enumeration. Yields every word over an alphabet, shorter words first and equal lengths in dictionary order. (shortlexWords)
    • Symbol quoting. Writes a symbol between quote marks with escapes and reads it back, in a line-bounded or a strict JSON mode. (quoteSymbol, scanQuotedSymbol, quoteIssueDecoder)
    • Symbol list parsing. Reads and writes symbols that white space separates. (parseSymbolList, formatSymbolList)
    • Fresh names. Returns a stem, or the stem with the smallest positive integer suffix, that is not in use. (freshName, freshBlankSymbol)
    • Construction namespace. Hands out unused names, symbols and tape blanks for one construction, never the endmarkers or a name given before, and charges fuel for each name it tries. (FreshNames, constructedSymbol)
    • Display text. Writes a symbol or a word for a reader. (displaySymbol, displayWord)
    • Alphabet. An ordered set of symbols with an index for each, built with validation. (Alphabet, SymbolIndex, AlphabetSymbol, alphabetSymbol, alphabetSymbolDecoder)
    • Word. An alphabet together with the indices of its symbols. (Word, wordOf, reindexWord, symbolsOf)
    • Special symbols. The shared spelling of the empty word, the empty set, the blank and the endmarkers. (SpecialSymbol)
    • Scanner. A code-point cursor with peek, match and span tracking, and the token type that lexers build on. (Scanner, Token, isWhitespace)
    • Enumerations. Name the closed sets of strings that the types and the wire data of the package use. (AlphabetIssueCode, DisplayMark, QuoteIssueCode, QuoteMark, QuoteMode, SymbolListIssueCode, WordIssueCode)