> ## Documentation Index
> Fetch the complete documentation index at: https://thrackle.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# parseTrackerSyntax

> **parseTrackerSyntax**(`syntax`): [`TrackerDefinition`](../../../modules/types/type-aliases/TrackerDefinition)

Parses the tracker syntax and validates its type and default value.

## Parameters

| Parameter | Type                                                                | Description                                    |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------- |
| `syntax`  | [`TrackerJSON`](../../../modules/validation/interfaces/TrackerJSON) | The JSON representation of the tracker syntax. |

## Returns

[`TrackerDefinition`](../../../modules/types/type-aliases/TrackerDefinition)

Either an object containing the tracker's name, type, and encoded default value if successful or an error

## Defined in

[src/parsing/parser.ts:278](https://github.com/forte-service-company-ltd/forte-rules-engine-sdk/blob/5aad4d7c3c8cc91280e4449c17ac8ea31219fbed/src/parsing/parser.ts#L278)
