1DUPABLEXPR(3) ABL FUNCTIONS DUPABLEXPR(3)
2
3
4
6 dupablexpr - duplicates an expression.
7
9 #include "abl101.h"
10 chain_list ∗dupablexpr( Expr )
11 chain_list ∗Expr;
12
14 Expr Expression to duplicate.
15
17 dupablexpr duplicates the expression Expr.
18
20 dupablexpr returns the duplicated expression.
21
23 #include "abl101.h"
24 chain_list ∗ExprAorB;
25 chain_list ∗ExprAnorB;
26 ExprAorB = createabloper( ABL_OR );
27 addablhexpr( ExprAorB, createablatom( "a" ) );
28 addablhexpr( ExprAorB, createablatom( "b" ) );
29 ExprAnorB = createablnotexpr( dupablexpr( ExprAorB ) );
30 /* displays (a or b) (a nor b) */
31 viewablexpr( ExprAorB, ABL_VIEW_VHDL );
32 viewablexpr( ExprAnorB, ABL_VIEW_VHDL );
33
35 abl(1), delablexpr(3), freeablexpr(3).
36
37
38
39
40
41
42ASIM/LIP6 October 1, 1997 DUPABLEXPR(3)