1CREATEABLBINEXPR(3)              ABL FUNCTIONS             CREATEABLBINEXPR(3)
2
3
4

NAME

6       createablbinexpr - creates a binary operator expression.
7

SYNOPSIS

9       #include "abl101.h"
10       chain_list ∗createablbinexpr( Oper, Expr1, Expr2 )
11         long        Oper;
12         chain_list ∗Expr1;
13         chain_list ∗Expr2;
14

PARAMETERS

16       Oper                The operator number.
17
18       Expr1               The first expression.
19
20       Expr2               The second expression.
21

DESCRIPTION

23       createablbinexpr  creates the binary operator expression Expr1 Operator
24       Expr2.  If the operator of Expr1 and/or Expr2, and Operator are identi‐
25       cals  createablbinexpr  merges  eventually  the  sub-expressions.   The
26       expression pointers Expr1 and Expr2 MUSTN'T be used after the  call  to
27       this function.
28

RETURN VALUE

30       createablbinexpr returns a pointer to the new operator expression.
31

ERRORS

33       "ablcreate: bad operator xx !",
34              Operator must be defined and must be a binary operator.
35

EXAMPLE

37       #include "abl101.h"
38          chain_list ∗ExprA;
39          chain_list ∗ExprB;
40          chain_list ∗ExprAorB;
41          ExprA = createablatom( "a" );
42          ExprB = createablatom( "b" );
43          ExprAorB  = createablbinexpr( ABL_OR, ExprA, ExprB );
44

SEE ALSO

46       abl(1) createablatom(3), createabloper(3), createablxorbinexpr(3), cre‐
47       ateablunaryexpr(3),   createablnotexpr(3),   addablhexpr(3),   addablq‐
48       expr(3).
49
50
51
52
53
54
55ASIM/LIP6                       October 1, 1997            CREATEABLBINEXPR(3)
Impressum