@samatawy/rules
    Preparing search index...

    Class ExecutableParser

    Parser class for parsing executable actions from rule syntax. You should normally not need to use this parser directly, as it is primarily used internally by the RuleParser when parsing consequences from rule syntax. This includes parsing state assignments (e.g. "SET x = 10") and simple assignments (e.g. "x = 10") into OutputAction instances that can be executed within the rule engine.

    Index

    Constructors

    Methods

    • Parse a string representing an executable action into an ExecutableAction object.

      Parameters

      • syntax: string

        The string representation of the executable action to parse.

      Returns ExecutableAction | null

      An ExecutableAction object representing the parsed action if successful.

      An error if the syntax is unrecognized or invalid.