Methods
parse(condStr) → {Array.<Object>}
Parse the sentence into tokens.
Parameters:
Name | Type | Description |
---|---|---|
condStr |
string | object | The condition string to parse. (If condStr is an object it is converted to a string using JSON.stringify. |
- Source:
Returns:
An array of tokens. Each token object has the
following properties: terminal, which is a boolean indicating if the
token is a terminal or not; type, as described by the condition BNF;
and value.
- Type
- Array.<Object>