getablexprdepth.3alc - Man Page

gives the depth of an expression.

Synopsis

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

Parameters

Expr

Expression.

Description

getablexprdepth gives the depth of an expression.

Return Value

getablexprdepth returns the depth of Expr.

Example

#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 ) );

See Also

abl(1)

Info

October 1, 1997 ASIM/LIP6 ABL FUNCTIONS