---
name: "createabloper"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/createabloper"
---

# createabloper(3)

creates the head of an operator expression.

## NAME

createabloper - creates the head of an operator expression.

## SYNOPSYS

```
#include "abl101.h"
 chain_list ∗createabloper( Oper )
  long Oper;
```

## PARAMETERS

- *Oper*

  The operator number.

## DESCRIPTION

**createabloper** creates the head of an operator expression. Arguments can be added to this expression with the *addablhexpr* and *addablqexpr* functions.  *Operator* can take the following values ABL\_AND, ABL\_OR, ABL\_AND, ABL\_XOR, ABL\_NOT, ABL\_NOR, ABL\_NAND, ABL\_NXOR,  ABL\_STABLE, ABL\_AF, ABL\_AG, ABL\_AX, ABL\_AU, ABL\_EF, ABL\_EG, ABL\_EX, ABL\_EU.\

## RETURN VALUE

**createabloper** returns a pointer to the new operator expression.

## ERRORS

**"ablcreate: bad operator xx !",**

The operator number must be defined.

## EXAMPLE

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

## SEE ALSO

[**abl**(1)](/abl/1.md) **[createablatom(3)](/createablatom/3.md),** **[createablnotexpr(3)](/createablnotexpr/3.md),** **[createablbinexpr(3)](/createablbinexpr/3.md),** **[createablunaryexpr(3)](/createablunaryexpr/3.md),** **[createablxorbinexpr(3)](/createablxorbinexpr/3.md),** **[addablhexpr(3)](/addablhexpr/3.md),** **[addablqexpr(3)](/addablqexpr/3.md).**
