November 2002

Tutorial

A Simple KMAL Program

Data Types

Fields and Variables

Assignment

Operators

Control Flow

Simple Conditional

Complex Conditional

Loops

Declaring Methods

Classes

<NOT COMPLETE>

Exceptions

Expressions

    <function>(<param>)//EVALUATION OF METHOD

    <template>(<param>)//EVALUATION OF TEMPLATE

    <object>.<subexpression>//EVALUATION OF ATTRIBUTE

Object Definition

    OBJECT <name> AS <type>;

    The object definition differs from that of the field definition in that a FIELD is a (changeable) reference to an object and an OBJECT is what it says it is.

Macro

    MACRO is similar to METHOD in definition, but makes many assumptions about parameters, return types, and whether code is executed.

    MACRO <name> (<param>) <definition>;