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