This wiki is out of date, use the continuation of this wiki instead

Begin

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:22, 24 July 2007 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Revision as of 13:24, 24 July 2007 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 5: Line 5:
[[Basic statements|'''Up to Basic Statements''']] [[Basic statements|'''Up to Basic Statements''']]
---- ----
 +
== Definition == == Definition ==

Revision as of 13:24, 24 July 2007

Up to Basic Statements



Definition

Begin
<main code>
[OnExit
<exit code>]
End

Begin is a reserved word to indicate the start of the code part of a program, process or function. The end is indicated by End.

Example

Program example;
Begin // Start the main code part of the main process
    proc1(); // create new instance of proc1
    Loop
        frame;
    End
End

Process proc1()
Begin // Start the main code part of the process
    Loop
        frame;
    End
End

Function int func1()
Begin // Start the main code part of the function
    return 0;
End

Used in example: loop, end, program, process, function

Personal tools