H (Hybrid) Language - v0.03, by Dr. Herong Yang
Block Statement Uses {...}; Format
This section describes how to enter block statements in H source code.
A block statement must be enclosed between "{" and "}".
This helps us to tie multiple statements together as a single statement to be used as a component to another statement. Within a block statement, variable visibility is changed. For example,
rate = 1.03; #commission rate $function exchange(eur): { rate = 1.19; # exchange rate usd = rate*eur; $return usd; }; eur = 10.00; usd = exchange(eur); usd = rate*usd; write(usd);
Design options:
1. A block statement is enclosed in { and }.
2. A group statement is enclosed in BEGIN and END.
3. A group statement is identified with extra indentation.
Table of Contents
Source Code Encoding Format - UTF-8
Statements End with Semicolons
Block Comments Enclosed in #(...)#
Group Statement Uses (...); Format
►Block Statement Uses {...}; Format
Inheritance - Object Attachments