Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/cfg.utils"

Index

Functions

formatProduction

  • formatProduction(production: Production): string
  • Formats a production to string.

    Example:

    {
     symbol: "S",
     produces: ["a", "A"]
    }

    is formated as S->aA

    export

    Parameters

    Returns string

    The string form of production.

isEpsilonProduction

  • isEpsilonProduction(production: Production): boolean
  • Checks if the production is a epsilon production(i.e. A->ε).

    export

    Parameters

    Returns boolean

    Returns true if epsilon production

isSameProduction

  • Checks if two productions are same.

    export

    Parameters

    Returns boolean

    Returns true if both are same production.

Generated using TypeDoc