• A generic function to build a particular instance of WordsDef. It is parametrized by an interface DSPrims that extends the interface DomainSpecificPrimitives, giving the interface for a particular specific domain.

    Type Parameters

    Parameters

    • languageLocale: string

      A mandatory parameter with a string identifying the language locale.

    • domainPrimitives: DSPrims

      A mandatory argument with the identifiers for the specific domain primitives.

    • Optional langPrimitives: Subset<LangPrimitives>

      The identifiers for the language primitives.

    • languageVariant: string = 'base'
    • Optional keywords: Subset<Keywords>

      Optional identifiers to override Gobstones keywords.

    • Optional extraSpecialRegularChars: Subset<SpecialRegularChars>

      Optional extra characters to add to the basic special regular characters.

    • Optional extraSymbolChars: Subset<SymbolChars>

      Optional extra characters to add to the symbol characters.

    Returns WordsDef<DSPrims>