**H (Hybrid) Language** - v0.03, by Dr. Herong Yang

Sub-Expressions

This section describes sub-expressions.

A portion of an expression can grouped as a sub-expression using round brackets: (...).

When sub-expressions are used, the order of evaluation will be affected as described below:

1. Inner sub-expressions are evaluated before outer sub-expressions.

2. Sub-expressions are evaluated before the base expression.

Examples of sub-expressions:

1. Sub-expressions are evaluated first:

# "1 + 2" is evaluated first, because "(1 + 2)" is a sub-expression (1 + 2) * 3; # The above expression is an alias of: integer.multiply(integer.add(1,2),3);

2. Inner sub-expressions are evaluated first:

# "2 - 4" is evaluated first, # because "(2 - 4)" is an inner sub-expression (1 + (2 - 4)) * 3; # The above expression is an alias of: integer.multiply(integer.add(1,integer.subtract(2,4)),3);

Table of Contents

Operations Are Aliases of Function Calls

Evaluation Order of Multiple Operators

Inheritance - Object Attachments