User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:bboolpr.3

bboolpr

Name

Bboolpr — Print the compiler boolean expression AST

Synopsis

#include <ubf.h>

void Bboolpr (char *tree, FILE *outf);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Print the compiled UBF buffer boolean expression evaluation Abstract Syntax Tree (AST) at tree hander to outf stream. The sample output for AST is following:

...
tree=Bboolco ("2 * ( 4 + 5 ) || 5 && 'abc' %% '..b' && 2/2*4==5")
...
Bboolpr(tree, stdout);

will give:
((2*(4+5)) || ((5 && ('abc' %% '..b')) && (((2/2)*4) == 5))

RETURN VALUE

Function is void and does not return any value.

ERRORS

Function is void and does not return any error.

EXAMPLE

See ubftest/test_expr.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd