Mercurial > baum
comparison 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 |
comparison
equal
deleted
inserted
replaced
51:7d7abe88e71b | 52:201b4603671a |
---|---|
76 .TP | 76 .TP |
77 .B create | 77 .B create |
78 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. | 78 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. |
79 | 79 |
80 .TP | 80 .TP |
81 .B if | |
82 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. | |
83 | |
84 .TP | |
81 .B number | 85 .B number |
82 Executes it's leftmost son. Returns the internal value. | 86 Executes it's leftmost son. Returns the internal value. |
83 | 87 |
84 .TP | 88 .TP |
85 .B print | 89 .B print |
90 Executes all of it's sons. Returns the sum of their return values. | 94 Executes all of it's sons. Returns the sum of their return values. |
91 | 95 |
92 .TP | 96 .TP |
93 .B times | 97 .B times |
94 Copies everything below the node and pastes it as last brother(s). Returns 0 always. | 98 Copies everything below the node and pastes it as last brother(s). Returns 0 always. |
99 | |
100 .TP | |
101 .B while | |
102 Executes it's second son as long the first son returns a logical true (not `0'). Requires two sons. Returns 0 always; | |
103 | |
95 | 104 |
96 | 105 |
97 | 106 |
98 | 107 |
99 | 108 |
121 .TP | 130 .TP |
122 .BI 6 | 131 .BI 6 |
123 node name too long, or no value given | 132 node name too long, or no value given |
124 | 133 |
125 .TP | 134 .TP |
135 .BI 7 | |
136 a node has not the required amount of sons | |
137 | |
138 .TP | |
126 .BI 126 | 139 .BI 126 |
127 invalid command line options | 140 invalid command line options |
128 | 141 |
129 | 142 |
130 | 143 |