Language - Expression

> Code - (Programming|Computer) Language > Code - Grammar / Syntax (Lexical)

1 - About

An Expression is a suite of special token that:

They are a value specifications that specify values resulting from a computation.

The expression execution order is determined by control-flow statements like if and for.

An expression is any reference to a variable or value, or a set of variable( s) and value( s) combined with operators.

Advertising

3 - Component

The following token compose an expression:

4 - List

  • expression statement: a general expression that stands alone, generally it's used as a call expression statement to call a Function.

5 - Example

a = b * 2; 

This statement has four expressions in it:

Advertising

6 - Documentation / Reference