parseRuleSyntax(Defined in: src/parsing/parser.ts:203 Parses the rule syntax and converts it into a raw instruction set.syntax,trackerNameToID,foreignCallNameToID,encodedValues,additionalForeignCalls,additionalEffectForeignCalls):Maybe<RuleDefinition>
Parameters
| Parameter | Type | Description |
|---|---|---|
syntax | RuleJSON | The JSON representation of the rule syntax. |
trackerNameToID | NameToID[] | A mapping of tracker IDs to their names and types. |
foreignCallNameToID | NameToID[] | A mapping of foreign call names to their IDs. |
encodedValues | string | - |
additionalForeignCalls | string[] | - |
additionalEffectForeignCalls | string[] | - |
Returns
Maybe<RuleDefinition>
An object containing the instruction set, raw data, positive effects, negative effects,
placeholders, and effect placeholders.