PleaseLangAST~Call(operator, args)

A class representing a call

new Call(operator, args)

The constructor
Parameters:
Name Type Description
operator object A node representing the operator. Should evaluate to a function or a Word with the value of a keyword
args Array An array of nodes representing the arguments. Should be filled with nodes that evaluate to arbitrary values

Methods

evaluate(scope) → {*}

Evaluate the node
Parameters:
Name Type Description
scope object The scope in which the node will be evaluated
Returns:
* - The result of the evaluation