OQL Quick Reference Card

The following table presents all the OQL statements, expression types and the operators. For the operators common to C++ and OQL, the precedence and associativity is the same.
Quick Reference Card
Statements
expression statement expr ;
selection statement if ( cond_expr ) statement [else statement]
jump statements break [expr] ;
  return [expr] ;
iteration statements while ( cond_expr ) statement
  do statement while ( cond_expr )
  for ( [expr] ; [cond_expr] ; [expr] ) statement
  for ( var in expr ) statement
compound statement { statement }
function definition statement function identifier ([arglist]) compound_statement
empty statement ;
Arithmetic Expressions
add + expr + expr
substract - expr - expr
multiply * expr * expr
divide / expr / expr
shift left « expr « expr
shift right » expr » expr
modular % expr % expr
bitwise and & expr & expr
bitwise inclusive or | expr | expr
bitwise xor ^ expr ^ expr
complement ~ ~ expr
Assignment Expressions
simple assignment := lvalue := expr
add and assign += lvalue += expr
substract and assign -= lvalue -= expr
multiply and assign *= lvalue *= expr
divide and assign /= lvalue /= expr
shift left and assign « lvalue «= expr
shift right and assign » lvalue »= expr
inclusive OR and assign |= lvalue |= expr
exclusive OR and assign & lvalue &= expr
modulo and assign % lvalue %= expr
exclusive OR and assign ^ lvalue ^= expr
Auto Increment & Decrement Expressions
post increment ++ lvalue++
post decrement - lvalue-
pre increment ++ ++lvalue
pre increment - -lvalue
Logical Expressions
logical and && expr && expr
logical and and expr and expr
logical or || expr || expr
logical or or expr or expr
Comparison Expressions
not ! ! expr
not not not expr
equal = expr = expr
equal == expr == expr
not equal != expr != expr
less than < expr < expr
less <= expr <= expr
greater > expr > expr
greater than >= expr >= expr
match regular expression ~ expr ~ expr
match regular expression case insensitive ~~ expr ~~ expr
not match regular expression !~ expr !~ expr
not match regular expression case insensitive !~~ expr !~~ expr
match regular expression like expr like expr
Conditionnal Expressions
conditionnal expression ? : expr ? expr : expr
Expression Lists
comma sequencing , expr , expr
Array Expressions
subscripting [] expr [expr ]
interval subscriptiong [:] expr [expr :expr ]
Path Expressions
member selection . expr . expr
member selection -> expr -> expr
Function Call
function call () expr (expr_list)
Method Invocation
member selection () expr ->expr (arglist)
Eval/Unval Operators
eval eval eval expr
no eval unval unval expr
Identifier Expressions
scope :: :: identifier
is set isset isset identifier
unset unset unset identifier
reference of & & identifier
  refof refof identifier
value of * * identifier
value of valof valof identifier
scope of scopeof scopeof identifier
push onto symbol table push push identifier
push onto symbol table and assign push push expr
pop from symbol table pop pop identifier
Set Expressions
union union expr union expr
intersection intersect expr intersect expr
except except expr except expr
include < expr < expr
include or equal <= expr <= expr
contain > expr > expr
contain or equal >= expr >= expr
Object Creation
new new [new] new_construct
new new new< opt_expr > new_construct
Object Deletion
delete delete delete expr
Collection Expressions
contents contents contents expr
is in in expr in expr
add to collection add to add expr to expr
suppress from collection suppress from suppress expr from expr
set element in or get element from an indexed collection [] expr [ expr ]
append to an indexed collection append/to append expr to expr
empty collection empty empty expr
exists in collection in exists identifier in expr : expr
for all in collection for all for all identifier in expr : expr
for some in collection for for < expr , expr > in expr : expr
Exception Expressions
throw exception throw throw expr
Function Definition
define function define as define identifier [arglist as expr
Conversion
string conversion string string( expr )
integer conversion int int( expr )
character conversion char char( expr )
float conversion float float( expr )
identifier conversion ident ident( expr )
oid conversion oid oid( expr )
Query Expressions
database query select select expr [from {expr [as] identifier} [where expr]] [order by {expr}]
    select expr [from {identifier in expr} [where expr]] [order by {expr}]
Type Information Expressions
class of classof classof expr
typeof of typeof typeof expr
Miscellenaous Expressions
structure of structof structof expr
body of bodyof bodyof expr
length pf [!] expr [!]
import package import import expr

EyeDB manual