Class: Fun

Seven~Functions04# Fun

@extends Symbol


new Fun()

Describes a function.

Properties:
Name Type Description
start boolean | number

code address.

calls Array.<number>

slots to insert Call.

returns Array.<number>

slots to insert branch to exit.

entry() function

generates preamble code.

undo() function

undoes entry().

call() function

generates Call instruction.

return() function

generates branch to exit.

storeOk() function

true if allowed to store.

store() function

generates store instruction.

end() function

fixes calls/returns, exit().

exit() function

generates postamble code.

toString() function

represents as text.

Source: