Expando Node for a Condition. More...
Go to the source code of this file.
Enumerations | |
enum | ExpandoConditionStart { CON_NO_CONDITION , CON_START } |
Signals node_parse() if the parsing started in a conditional statement or not. More... | |
enum | ENCondition { ENC_CONDITION , ENC_TRUE , ENC_FALSE } |
Names for the Condition's children. More... | |
Functions | |
struct ExpandoNode * | node_condition_new (struct ExpandoNode *condition, struct ExpandoNode *node_true, struct ExpandoNode *node_false) |
Create a new Condition Expando Node. | |
Expando Node for a Condition.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file node_condition.h.
Signals node_parse() if the parsing started in a conditional statement or not.
Easier to read than a simple true, false.
Enumerator | |
---|---|
CON_NO_CONDITION | Parser is not currently in a condition. |
CON_START | Parser is working on a condition. |
Definition at line 34 of file node_condition.h.
enum ENCondition |
Names for the Condition's children.
A Condition has three children:
Enumerator | |
---|---|
ENC_CONDITION | Index of Condition Node. |
ENC_TRUE | Index of True Node. |
ENC_FALSE | Index of False Node. |
Definition at line 48 of file node_condition.h.
struct ExpandoNode * node_condition_new | ( | struct ExpandoNode * | condition, |
struct ExpandoNode * | node_true, | ||
struct ExpandoNode * | node_false | ||
) |
Create a new Condition Expando Node.
condition | Expando Node that will be tested |
node_true | Node tree for the 'true' case |
node_false | Node tree for the 'false' case |
ptr | New Condition Expando Node |
Definition at line 72 of file node_condition.c.