Back to home page

Enduro/X

 
 

    


0001 BBOOLPR(3)
0002 ==========
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 Bboolpr - Print the compiler boolean expression AST
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 
0014 #include <ubf.h>
0015 
0016 void Bboolpr (char *'tree', FILE *'outf');
0017 
0018 Link with '-lubf -lnstd -lm -lpthread'
0019 
0020 DESCRIPTION
0021 -----------
0022 Print the compiled UBF buffer boolean expression evaluation Abstract Syntax Tree
0023  (AST) at 'tree' hander to 'outf' stream. The sample output for AST is following:
0024 
0025 --------------------------------------------------------------------------------
0026 
0027 ...
0028 tree=Bboolco ("2 * ( 4 + 5 ) || 5 && 'abc' %% '..b' && 2/2*4==5")
0029 ...
0030 Bboolpr(tree, stdout);
0031 
0032 will give:
0033 ((2*(4+5)) || ((5 && ('abc' %% '..b')) && (((2/2)*4) == 5))
0034 
0035 --------------------------------------------------------------------------------
0036 
0037 
0038 RETURN VALUE
0039 ------------
0040 Function is void and does not return any value.
0041 
0042 ERRORS
0043 ------
0044 Function is void and does not return any error.
0045 
0046 EXAMPLE
0047 -------
0048 See *ubftest/test_expr.c* for sample code.
0049 
0050 BUGS
0051 ----
0052 Report bugs to support@mavimax.com
0053 
0054 SEE ALSO
0055 --------
0056 *Bboolev(3)* *Bfloatev(3)* *Btreefree(3)*
0057 
0058 COPYING
0059 -------
0060 (C) Mavimax, Ltd
0061