Function constantFolding

  • Applies a constant folding optimisation pass on parsed rules of [engine].

    Parameters

    • engine: Engine<string>

      The engine instantiated with the rules to fold.

    • Optional params: FoldingParams

      The folding parameters.

    Returns ParsedRules<RuleName>

    The parsed rules with constant folded rules.

Generated using TypeDoc