Classes
Methods
(static) parseExpression(exprText, lineNumberopt, scriptNameopt, nullable, arrayLiteralsopt) → {Object}
Parse a BareScript expression
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
exprText |
string | The expression text |
||
lineNumber |
number |
<optional> |
1 | The script line number |
scriptName |
string |
<optional> <nullable> |
null | The script name |
arrayLiterals |
boolean |
<optional> |
false | If True, allow parsing of array literals |
Throws:
Returns:
The expression model
- Type
- Object
(static) parseScript(scriptText, startLineNumberopt, scriptNameopt, nullable) → {Object}
Parse a BareScript script
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
scriptText |
string | Array.<string> | The script text |
||
startLineNumber |
number |
<optional> |
1 | The script's starting line number |
scriptName |
string |
<optional> <nullable> |
null | The script name |
Throws:
Returns:
The BareScript model
- Type
- Object