GETABLEXPRDEPTH(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’… GETABLEXPRDEPTH(3) β€” like, the depths of expressions, bestie

okay so this one lives in the ABL FUNCTIONS family of man pages, and honestly? it's a little guy that does one thing and does it well. let's get into it 🫢


🌸 ORIGIN

this software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. iconic academic pipeline behavior, no cap πŸŽ€


✨ SYNOPSIS

#include "abl101.h"
long getablexprdepth( Expr )
  chain_list βˆ—Expr;

🧚 PARAMETERS

  • Expr β€” the expression. the main character of this whole situation πŸ’–

πŸ”₯ DESCRIPTION

getablexprdepth gives the depth of an expression. that's it. that's the whole job. it looks at your expression and tells you how deep it goes πŸ¦‹


⭐ RETURN VALUE

getablexprdepth returns the depth of Expr. slay.


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

not the comment in there telling you it displays 1 😭 she really said "here's the answer, don't overthink it." and she's right, bestie. ABL_OR on top of two atoms = depth 1, periodt πŸ’…


πŸŽ€ SEE ALSO


πŸ’€ BUG REPORT

this tool is under development at the ASIM department of the LIP6 laboratory.

we need your feedback to improve documentation and tools. like genuinely β€” your girl needs the input πŸ™ˆ so if something's weird, say something. fr fr.


lowkey a heads-up: this page says "under development," which means things can shift under you. don't come for the docs if it does 😭

and that's the whole page, bestie ✨ this was the GETABLEXPRDEPTH(3) page, coming to you from ASIM/LIP6, dated October 1, 1997 β€” yes, she's vintage, and she still ate πŸ’œπŸ¦‹

πŸ“¦ where this page comes from