1UNFLATABLEXPR(3) ABL FUNCTIONS UNFLATABLEXPR(3)
2
3
4
6 unflatablexpr - unflats the operators of an expression
7
9 #include "abl101.h"
10 void unflatablexpr( Expr )
11 chain_list ∗Expr;
12
14 Expr Expression to unflat.
15
17 unflatablexpr modifies all the operators in Expr in order to have
18 exclusively binary or unary operators.
19
21 unflatablexpr returns the modified expression.
22
24 #include "abl101.h"
25 chain_list ∗Expr1;
26 chain_list ∗Expr2;
27 Expr1 = createbinexpr( ABL_OR,
28 createablatom( "a" ),
29 createablatom( "b" ) );
30 addablqexpr( Expr1, createablatom( "c" ) );
31 Expr2 = unflatablexpr( dupablexpr( Expr1 ) );
32 /* displays ((a or b) or c) (a or b or c) */
33 viewablexpr( Expr2, ABL_VIEW_VHDL );
34 viewablexpr( Expr1, ABL_VIEW_VHDL );
35
37 abl(1), ununflatablexpr(3).
38
39
40
41
42
43
44ASIM/LIP6 October 1, 1997 UNFLATABLEXPR(3)