createabloper3
Creates the head of an operator expression.
Synopsys
#include "abl101.h" chain_list ∗createabloper( Oper ) long Oper;
Parameters
- Oper
-
The operator number.
Overview
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.
Examples
#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 );
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.