Stores one expression in function. More...
#include <c_command.h>
Public Types | |
enum | e_type { CMD_LEFT_BRACKET, CMD_RIGHT_BRACKET, CMD_EXP, CMD_IF_EXP, CMD_ELSE, CMD_EXP_SUB, CMD_LABEL, CMD_GOTO, CMD_SWITCH, CMD_CASE, CMD_BREAK, CMD_CONTINUE, CMD_FOR, CMD_WHILE, CMD_DO, CMD_FOREACH_1, CMD_FOREACH_2, CMD_FOREACH_3, CMD_GLOBAL } |
Public Member Functions | |
c_command () | |
Public Attributes | |
string | as |
If type == CMD_FOREACH_2: $y value variable. | |
c_expression * | condition |
If type == CMD_FOR: conditional expression. | |
string | debug |
Debug string. | |
c_expression * | exp |
if type == CMD_EXP: expression | |
string | exp_ |
Expression/argument as string. | |
c_expression * | iterative_exp |
If type == CMD_FOR: iterative expression. | |
string | key |
If type == CMD_FOREACH_3: $key variable. | |
bool | ref_value |
If type == CMD_FOREACH_2, CMD_FOREACH_3: true if &$y/&$val is reference. | |
bool | semicolon |
true if there was semicolon at the end of expression | |
c_expression * | sub |
If type == CMD_EXP_SUB: sub-expression. | |
string | sub_ |
If type == CMD_EXP_SUB: Subexpression as string. | |
enum c_command::e_type | type |
Type of expression. | |
string | value |
If type == CMD_FOREACH_3: $val variable. | |
c_expression * | what_exp |
If type == CMD_FOREACH_1, CMD_FOREACH_2, CMD_FOREACH_3: $x array expression. |
Stores one expression in function.
Definition at line 62 of file c_command.h.