getablexprdepth(3)

getablexprdepth3

Gives the depth of an expression.

Synopsys

#include "abl101.h"
long getablexprdepth( Expr )
  chain_list ∗Expr;

Parameters

Expr

Expression.

Overview

getablexprdepth gives the depth of an expression.

Return value

getablexprdepth returns the depth of Expr.

Examples

#include "abl101.h"
   chain_list ∗ExprA;
   chain_list ∗ExprB;
   chain_list ∗ExprAorB;
   ExprA = createablatom( "a" );
   ExprB = createablatom( "b" );
   ExprAorB  = createablbinexpr( ABL_OR, ExprA, ExprB );
   /* displays 1 */
   printf( "%d", getablexprdepth( ExprAorB ) );

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.