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

NAME

6       unflatablexpr - unflats the operators of an expression
7

SYNOPSIS

9       #include "abl101.h"
10       void unflatablexpr( Expr )
11         chain_list ∗Expr;
12

PARAMETERS

14       Expr                Expression to unflat.
15

DESCRIPTION

17       unflatablexpr  modifies  all  the  operators  in  Expr in order to have
18       exclusively binary or unary operators.
19

RETURN VALUE

21       unflatablexpr returns the modified expression.
22

EXAMPLE

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

SEE ALSO

37       abl(1), ununflatablexpr(3).
38
39
40
41
42
43
44ASIM/LIP6                       October 1, 1997               UNFLATABLEXPR(3)
Impressum