Skip to Main Content
The “Oslo” Modeling Language
book

The “Oslo” Modeling Language

by David Langworthy, Brad Lovering, Don Box
October 2008
Beginner to intermediate content levelBeginner to intermediate
208 pages
3h 1m
English
Addison-Wesley Professional
Content preview from The “Oslo” Modeling Language

Chapter 5. Expressions

An expression is a sequence of operators and operands. This chapter defines the syntax, order of evaluation of operands and operators, and meaning of expressions.

5.1 Operators

Expressions are constructed from operands and operators. The operators of an expression indicate which operations to apply to the operands. Examples of operators include +, -, *, and /. Examples of operands include literals, fields, and expressions.

There are the following kinds of operators:

• Unary operators take one operand and use prefix notation such as -x.

• Binary operators take two operands and use infix notation such as x + y.

• Ternary operator. Only one ternary operator, ?:, exists; it takes three operands and uses infix notation (c? x: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Technical Java™: Developing Scientific and Engineering Applications

Technical Java™: Developing Scientific and Engineering Applications

Grant Palmer
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams

Publisher Resources

ISBN: 9780321606518Purchase book