# GetBNF method

Gets the current Backus-Naur Form (BNF) grammar of the Qlik engine scripting language. The BNF rules define the syntax for the script statements and the script or chart functions. In the Qlik engine BNF grammar, a token is a string of one or more characters that is significant as a group. For example, a token could be a function name, a number, a letter, a parenthesis, and so on.

Information note **DEPRECATED.**  
This is deprecated and may be removed in a future version.

Use the *GetBaseBNF* method instead

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qBnfType | Returns a set of rules defining the syntax for:<br><br><ul><li>The script statements and the script functions if <em>qBnfType</em> is set to S.</li><li>The chart functions if <em>qBnfType</em> is set to E.</li></ul><br><br>One of:<br><br><ul><li>S or SCRIPT_TEXT_SCRIPT</li><li>E or SCRIPT_TEXT_EXPRESSION</li></ul> | Yes | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qBnfDefs | Description of the scripting language grammar. | Array of [BNFDef](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-bnfdef.htm) |

## See also

[Get the Qlik Sense script syntax grammar](https://help.qlik.com/en-US/sense-developer/May2025/csh/engineapi/get-script-syntax-grammar)