Declaration

A Jigot function definition consists of a unique name, a return type (void if no value is returned), a list of parameters in parentheses, and various statements:

functionName <return-type> (<parameter-list>) {
    <statements>;
    <expression of type return-type> return; #or nothing if return type is void
}

A function with non-void return type should include at least one return statement. The parameters are given by the <parameter-list>, a comma-separated list of parameter declarations, each item in the list being an identifier followed by a data-type: <variable-identifier> <data-type>, <variable-identifier> <data-type>, ....

Last updated