Language - Statement (Sentence)

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

1 - About

A statement is being similar to a sentence.

Variables and data types aren't statements but they are the building blocks that form them.

Generally, a punctuation make obvious where one statement ends and another begins. See Language - Statement Separator

A statement is contained in a block.

A statement is composed of expression that are composed of token.

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

A statement is executed and produces neither an error message nor a value.


3 - Property

3.1 - Name / Label

A statement can have a label. See Language - Name (Program Entity)

code/grammar/statement.txt · Last modified: 2019/10/03 10:53 by gerardnico