Expression (computer science)

An expression is, in many programming languages ​​, a construct that can be evaluated in a context according to a given semantic in reference, so a value.

In many formal languages ​​are expressions of one of the most important constructs, if not the only one. A few examples:

In addition to the terms declarations are important in many formal languages ​​that define the context, the terms. These are sometimes also considered (especially in functional programming languages ​​and scripting languages ​​) itself as expressions, but mostly not.