Class for all actions related to parsing

Constructors

Properties

toJson: ((rules: Rule[]) => string) = Parser.toJson

Type declaration

    • (rules): string
    • Turn an array of rule objects back into a json ruleset

      Parameters

      • rules: Rule[]

        the array of rules

      Returns string

Methods

  • Create an Array of Rule objects from a json ruleset

    Parameters

    • jsonRuleset: Record<string, any>

      the ruleset

    Returns Rule[]

  • Check if a given RITA Ruleset is valid

    Parameters

    • json: Record<string, any>

      the ruleset

    Returns validationResult

  • Turn an array of rule objects back into a json ruleset

    Parameters

    • rules: Rule[]

      the array of rules

    Returns string