baum

diff baum.1 @ 52:201b4603671a

documented "if" and "while" in the man page; new error code 7
author meillo@marmaro.de
date Sun, 02 Mar 2008 16:26:06 +0100
parents 7d7abe88e71b
children 6279e5b14d9e
line diff
     1.1 --- a/baum.1	Sun Mar 02 16:17:18 2008 +0100
     1.2 +++ b/baum.1	Sun Mar 02 16:26:06 2008 +0100
     1.3 @@ -78,6 +78,10 @@
     1.4  Creates a new number node as last brother. The value of the new node is ether read from standard input (if the node has no son), or the return value of the first son. Returns 0 always.
     1.5  
     1.6  .TP
     1.7 +.B if
     1.8 +Compares return value of first son and second son. The internal value defines how the comparation is done. 33 (`!') means not equal; 60 (`<') less than; 62 (`>') greater than; and everything else stands for equal. Requires two sons. Returns 1 for true and 0 for false.
     1.9 +
    1.10 +.TP
    1.11  .B number
    1.12  Executes it's leftmost son. Returns the internal value.
    1.13  
    1.14 @@ -93,6 +97,11 @@
    1.15  .B times
    1.16  Copies everything below the node and pastes it as last brother(s). Returns 0 always.
    1.17  
    1.18 +.TP
    1.19 +.B while
    1.20 +Executes it's second son as long the first son returns a logical true (not `0'). Requires two sons. Returns 0 always;
    1.21 +
    1.22 +
    1.23  
    1.24  
    1.25  
    1.26 @@ -123,6 +132,10 @@
    1.27  node name too long, or no value given
    1.28  
    1.29  .TP
    1.30 +.BI 7
    1.31 +a node has not the required amount of sons
    1.32 +
    1.33 +.TP
    1.34  .BI 126
    1.35  invalid command line options
    1.36