Home Notices Documents Classes Download Others Rice
Documents  >  usage  >  entrypoint
Start of execution.

entry point

The CookerGX generates an interpreter by reading the Rice source file when it is instructed to execute the program. Then, the interpreter calls the start() method of the main class and executes it.

The calling and execution of the start() method is the starting point of program execution. This is called entry point of execution.

open method void start()

Program execution begins with the start() method of the main class. Therefore, the main class must have the definition of the start() method.

The outline of the start() method definition is shown below.

1:

open method void start()

2:

// Method definition.

3:

endmethod

As shown above, start() is an open method with the name "strat" with no arguments and no return value.

Even if there is a return value, it is meaningless because it is ignored.

Next
Previous
Copyright © CookerGX All rights reserved.