Call Expression

A call expression invokes the given identifier as a function.

Structure

ParamList = '(' ( Expression ( ',' Expression )* )? ')'
CallExpr = Expression GenericArgs? '(' ParamList? ')'

Example

start()
padLeft('Hello', 5, ' ')
print(getValue())
max((5 + 3) * 2, 9) + min(5, getValue())
identity<Number>(5)
createPair<Number, String>(5, 'Hello')

References