docs.roxen.comView this page in a printer friendly mode
DocsPike7.0TutorialExpressions
Copyright © 2012, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

Some Terminology
Arithmetical Operations
Operations on Complex Types
Comparison
Logical Expressions
Bitwise Operations
Operations on Sets
Indexing
Assignment
Type Conversions
The Comma Operator
Call and Splice
Operator Precedence and Associativity

Some Terminology

First of all, some useful terms:

  • An operation is something Pike does, such as the operation "addition".

  • An operator is the symbol we use in a program to write the operation, such as the operator +.

  • An operand is a thing that an operation is applied to. For example, in the expression 7 + a there are two operands: 7 and a.

  • An expression is what you get when you combine operators and operands according to the grammar rules of the language.

In this chapter we will examine how we write expressions in Pike. We will look at all the operations that have their own operators.