parseRuleSyntax(syntax, indexMap, foreignCallNameToID): RuleDefinition

Parses the rule syntax and converts it into an abstract syntax tree (AST) and instruction set.

Parameters

ParameterTypeDescription
syntaxruleJSONThe JSON representation of the rule syntax.
indexMaptrackerIndexNameMapping[]A mapping of tracker IDs to their names and types.
foreignCallNameToIDFCNameToID[]-

Returns

RuleDefinition

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

Defined in

src/parsing/parser.ts:74