The method to be used is the GetBNF method. The handle of the request is -1 because this method applies at global level.
The client sends:
{
"handle": -1,
"method": "GetBNF",
"params": {
"qBnfType": 0
},
"id": 2,
"jsonrpc": "2.0"
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"qBnfDefs": [
{
"qBnf": [],
"qNbr": 686,
"qPNbr": 678,
"qHelpId": 0,
"qName": ")",
"qStr": ")",
"qBnfLiteral": true,
"qFG": "U",
"qMT": "N"
},
{
"qBnf": [],
"qNbr": 687,
"qPNbr": 689,
"qHelpId": 0,
"qName": "(",
"qStr": "(",
"qBnfLiteral": true,
"qFG": "U",
"qMT": "N"
},
{
"qBnf": [],
"qNbr": 688,
"qPNbr": 689,
"qHelpId": 0,
"qName": ")",
"qStr": ")",
"qBnfLiteral": true,
"qFG": "U",
"qMT": "N"
},
{
"qBnf": [
687,
682,
688,
0
],
"qNbr": 689,
"qPNbr": 697,
"qHelpId": 0,
"qName": "DD_ExpressionList",
"qStr": "DD_ExpressionList",
"qIsBnfRule": true,
"qFG": "U",
"qMT": "N"
}
...
]
}
}
The script syntax grammar is returned.
See: GetBNF method