Language - Expression

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

1 - About

Expressions:

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 - List

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

4 - Example

a = b * 2; 

This statement has four expressions in it:

  • 2 is a literal value expression.
  • b is a variable expression, which means to retrieve its current value.
  • b * 2 is an arithmetic expression, which means to do the multiplication.
  • a = b * 2 is an assignment expression, which means to assign the result of the b * 2 expression to the variable a.

5 - Documentation / Reference

Advertising
code/grammar/expression.txt · Last modified: 2018/12/19 21:31 by gerardnico