viewablexprstr(3)

viewablexprstr3

Displays an expression in a str.

Synopsys

#include "abl101.h"
char *viewablexprstr( Expr, Mode )
  chain_list ∗Expr;
  int         Mode;

Parameters

Expr

Expression to display.

Mode

The notation type.

Overview

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

Return value

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

Examples

#include "abl101.h"
  chain_list ∗Expr;
  char       ∗String;
  Expr = createabloper( ABL_OR );
  addablhexpr( Expr, createablatom( "a" ) );
  addablhexpr( Expr, createablatom( "b" ) );
  /* displays (a or b) */
  String = viewablexprstr( Expr, ABL_VIEW_VHDL );
  printf( String );

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.