Class Sym

Symbolic Variable

Hierarchy

  • Sym

Constructors

Properties

name: string
keywords: Sym[] = []

Accessors

Methods

  • Check if value is a Sym

    Parameters

    • value: unknown

      Value to check

    Returns value is Sym

    If value is an instance of Sym

  • Check if value is a keyword Sym

    Parameters

    • value: unknown

      VAlue to check

    Returns boolean

    If value is a keword Sym

  • Check if name matches a keyword Sym

    Parameters

    • name: string

      Name of keyword to check

    Returns boolean

    If name matches a keyword Sym

  • Register a keyword sym

    This prevents a Sym being created of the same name as the keyword

    Parameters

    • name: string

      Name of keyword

    Returns Sym

    Sym for the keyword

  • Create Sym from name string

    Will throw if name matches a keyword Sym

    Parameters

    • name: string

      Name for Sym

    Returns Sym

    Newly created Sym with name

Generated using TypeDoc