Skip to main content

Documentation Index

Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

parseRuleSyntax(syntax, indexMap, foreignCallNameToID, encodedValues, additionalForeignCalls, additionalEffectForeignCalls): RuleDefinition
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.

Defined in

src/parsing/parser.ts:81