[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Binary Expressions

Binary expressions are either monadic expressions, or have two operands and an infix operator; the syntax is:

binary-expression:
	monadic-expression
	binary-expression binary-operator binary-expression

binary-operator: one of
	* / % + - << >> < > <= >= == != & ^ | :: && ||


 All of these operators are left-associative except for  ::, which associates right. Their precedence is as listed here, with tightest first. 
* / %
+ -
<< >>
< > <= >=
== !=
& ^ |
::
&& ||



[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Copyright © 1998, Lucent Technologies, Inc. All rights reserved.