parseRuleSyntax(syntax, indexMap, foreignCallNameToID, encodedValues, additionalForeignCalls, additionalEffectForeignCalls): RuleDefinition
Defined in: src/parsing/parser.ts:137 Parses the rule syntax and converts it into a raw instruction set.

Parameters

ParameterTypeDescription
syntaxRuleJSONThe JSON representation of the rule syntax.
indexMaptrackerIndexNameMapping[]A mapping of tracker IDs to their names and types.
foreignCallNameToIDFCNameToID[]A mapping of foreign call names to their IDs.
encodedValuesstring-
additionalForeignCallsstring[]-
additionalEffectForeignCallsstring[]-

Returns

RuleDefinition An object containing the instruction set, raw data, positive effects, negative effects, placeholders, and effect placeholders.