Module: lib/parser

Classes

BareScriptParserError

Methods

(static) parseExpression(exprText) → {Object}

Parse a BareScript expression

Parameters:
Name Type Description
exprText string

The expression text

Source:
Throws:
Returns:
Type
Object

(static) parseScript(scriptText, startLineNumberopt) → {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

Source:
Throws:
Returns:
Type
Object