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

NAME

6       flatablexpr - merges the operators of an expression
7

SYNOPSIS

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

PARAMETERS

14       Expr                Expression to flat.
15

DESCRIPTION

17       flatablexpr merges all the common operators in Expr.
18

RETURN VALUE

20       flatablexpr returns nothing.
21

EXAMPLE

23       #include "abl101.h"
24         chain_list ∗Expr1;
25         chain_list ∗Expr2;
26         Expr1 = createbinexpr( ABL_OR,
27                                createablatom( "a" ),
28                                createablatom( "b" ) );
29         Expr2 = createabloper( ABL_OR );
30         addablhexpr( Expr2, createablatom( "c" ) );
31         addablhexpr( Expr2, Expr1 );
32         Expr1 = dupablexpr( Expr2 );
33         flatablexpr( Expr1 );
34         /* displays ((a or b) or c) (a or b or c) */
35         viewablexpr( Expr2, ABL_VIEW_VHDL );
36         viewablexpr( Expr1, ABL_VIEW_VHDL );
37

SEE ALSO

39       abl(1), unflatablexpr(3).
40
41
42
43
44
45
46ASIM/LIP6                       October 1, 1997                 FLATABLEXPR(3)
Impressum