H (Hybrid) Language - v0.03, by Dr. Herong Yang
What Is an Statement
This section describes what is a statement in H language.
A statement is a unit of source code that can be and should be executed by the system as a whole.
Examples of statements are:
1. The statement below is an expression statement, which creates an integer data object represents integer 1:
1;
2. The statement below is an assignment statement, which assigns a reference of the data object created from the expression to variable x:
x = 1;
3. The statement below is a conditional statement, which executes a sub-statement only when the given condition is true:
$if price > 100.00, write("Too expensive for me!");
4. The statement below is a function definition statement, which defines a new function:
$function hello(): { write("Hello world!"); };
Table of Contents
Conditional "elseif" Statement
"switch" Statement - Not Supported
"do...while" Statement - Not Supported
Inheritance - Object Attachments