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

NAME

6       viewablexprstr - displays an expression in a str.
7

SYNOPSIS

9       #include "abl101.h"
10       char *viewablexprstr( Expr, Mode )
11         chain_list ∗Expr;
12         int         Mode;
13

PARAMETERS

15       Expr                Expression to display.
16
17       Mode                The notation type.
18

DESCRIPTION

20       viewablexprstr  displays  Expr in a string, with the notation specified
21       by Mode.  The following notation types  are  available  ABL_VIEW_INFIX,
22       ABL_VIEW_PREFIX, ABL_VIEW_POSTFIX or ABL_VIEW_VHDL.
23

RETURN VALUE

25       viewablexprstr returns a pointer to the string where the expression has
26       been displayed in. This string MUSTN'T be freed.
27

EXAMPLE

29       #include "abl101.h"
30         chain_list ∗Expr;
31         char       ∗String;
32         Expr = createabloper( ABL_OR );
33         addablhexpr( Expr, createablatom( "a" ) );
34         addablhexpr( Expr, createablatom( "b" ) );
35         /* displays (a or b) */
36         String = viewablexprstr( Expr, ABL_VIEW_VHDL );
37         printf( String );
38

SEE ALSO

40       abl(1), viewablexprfile(3), viewablexpr(3).
41
42
43
44
45
46
47ASIM/LIP6                       October 1, 1997              VIEWABLEXPRSTR(3)
Impressum