BBOOLPR(3)


Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. RETURN VALUE
5. ERRORS
6. EXAMPLE
7. BUGS
8. SEE ALSO
9. COPYING

1. NAME

Bboolpr - Print the compiler boolean expression AST

2. SYNOPSIS

#include <ubf.h>

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

Link with -lubf -lnstd -lm -lpthread

3. 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))

4. RETURN VALUE

Function is void and does not return any value.

5. ERRORS

Function is void and does not return any error.

6. EXAMPLE

See ubftest/test_expr.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

Bboolev(3) Bfloatev(3) Btreefree(3)

9. COPYING

© Mavimax, Ltd