carta
flatablexpr(3)

flatablexpr3

Merges the operators of an expression

Synopsys

#include "abl101.h"
void flatablexpr( Expr )
  chain_list ∗Expr;

Parameters

Expr

Expression to flat.

Overview

flatablexpr merges all the common operators in Expr.

Return value

flatablexpr returns nothing.

Examples

#include "abl101.h"
  chain_list ∗Expr1;
  chain_list ∗Expr2;
  Expr1 = createbinexpr( ABL_OR, 
                         createablatom( "a" ),
                         createablatom( "b" ) );
  Expr2 = createabloper( ABL_OR );
  addablhexpr( Expr2, createablatom( "c" ) );
  addablhexpr( Expr2, Expr1 );
  Expr1 = dupablexpr( Expr2 );
  flatablexpr( Expr1 );
  /* displays ((a or b) or c) (a or b or c) */
  viewablexpr( Expr2, ABL_VIEW_VHDL );
  viewablexpr( Expr1, ABL_VIEW_VHDL );

History

  • Debian 10 (Buster) to Debian 9 (Stretch): the text shown here
  • Debian 8 (Jessie) to Debian 7 (Wheezy)

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