createFunctionForPhrase

fun createFunctionForPhrase(phrase: A_Phrase, module: A_Module, lineNumber: Int): A_Function

Convert a phrase into a zero-argument A_Function.

Return

A zero-argument function.

Parameters

phrase

The phrase to compile to a function.

module

The module that is the context for the phrase and function, or nil if there is no context.

lineNumber

The line number to attach to the new function, or 0 if no meaningful line number is available.