Quésoftmicrosystèmes
Tutorial 1 : Your first cup of Moka.

Introduction
This tutoria introduced the Moka syntax.  It deploys an application that shows a message.

What to do
1. First, Moka compiler needs to be installed. Decompress the mdk2.xx directory into a local device(ex: C:\ under Windows or / underLinux). If you are using Linux, you must grant execution right to the program (typing 'chmod +x Moka' in the installation directory).
2. Open Notepad or any other text editor (Edit or UltraEdit are doing well to) and type that :
import moka.lang.System;//Imports moka.lang.System class.

public class Hello {
    /*
        Defining a static "main" function, returning nothing, which is the entry point of the program.
    */
    public static void main () {
       System.println("Hello, world!"); //Print "Hello, world!"
       System.read();//Wait for the user to press a key.
    }
}
3. Save your doccument under the name "Hello.java".
4. Open a console (Under Windows : Start menu -> Run ..., then type "command")  then go to the directory in which you had installed Moka (If Moka was installed in the "C:\mkd2.xx" directory, then type "cd C:\mdk2.xx").  You should now type "Moka " (under Windows) or ("./Moka" under Linux) folowed by the explicit path of the "Hello.java source file" (if you saved the source file in the "C:\temp directory, the completed command will looks like "Moka C:\temp\Hello" under Windows).  If the source file was as above, you should obtain "Project built successfuly."
5. Moka has created a directory named TIGCC which contains the C source code of the application.  If TIGCC (GNU C Compiler for TI-89 / TI-92Plus calculators) is installed, start the IDE.  If TIGCC is not installed yet, download it on http://www.ticalc.org, then proceed to the installation.
6. Start the TIGCC project in the TIGCC directory named Hello.tpr.  (File -> Open ...).
7. Compile the projet (Project -> Compile).
8. Once compiled, transfert the executable files (Hello.89z for TI-89 or Hello.9xz for TI-92Plus) on your calculator, then start the application by typing "hello()" in the Home screen.