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

NAME

6       createablxorbinexpr - creates an 'xor' or 'xnor' operator expression.
7

SYNOPSIS

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

PARAMETERS

16       Oper                Operator ABL_XOR or ABL_NXOR.
17
18       Expr1               First expression.
19
20       Expr2               Second expression.
21

DESCRIPTION

23       createablxorbinexpr  creates  a binary 'xor' or 'xnor' operator expres‐
24       sion with the 'and', 'or' form.  createablbinexpr simplifies eventually
25       the  sub-expressions.   The expression pointers Expr1 and Expr2 MUSTN'T
26       be used after the call to this function.
27

RETURN VALUE

29       createablxorbinexpr returns a pointer to the new operator expression.
30

ERRORS

32       "ablcreate: bad operator xx !",
33              Operator must be ABL_XOR or ABL_NXOR.
34

EXAMPLE

36       #include "abl101.h"
37          chain_list ∗ExprA;
38          chain_list ∗ExprB;
39          chain_list ∗ExprAxorB;
40          ExprA = createablatom( "a" );
41          ExprB = createablatom( "b" );
42          ExprAxorB  = createablxorbinexpr( ABL_XOR, ExprA, ExprB );
43          /* displays (a and (not b) or (b and (not a)) */
44          viewablexpr( ExprAxorB, ABL_VIEW_VHDL );
45

SEE ALSO

47       abl(1) abl(1) createablatom(3), createabloper(3),  createablbinexpr(3),
48       createablunaryexpr(3),  createablnotexpr(3),  addablhexpr(3),  addablq‐
49       expr(3).
50
51
52
53
54
55
56ASIM/LIP6                       October 1, 1997         CREATEABLXORBINEXPR(3)
Impressum