Beispiel #1
0
AST_exp_n_t * AST_exp_boolean_constant
(
    parser_location_p location,
    boolean value
)
{
	AST_exp_n_t * exp = AST_exp_new(AST_EXP_CONSTANT);
	exp->exp.constant.type = AST_nil_const_k;
	exp->exp.constant.val.other = AST_boolean_constant(location, value);
	return exp;
}
Beispiel #2
0
AST_exp_n_t * AST_exp_boolean_constant(boolean value)	{
	AST_exp_n_t * exp = AST_exp_new(AST_EXP_CONSTANT);
	exp->exp.constant.type = AST_nil_const_k;
	exp->exp.constant.val.other = AST_boolean_constant(value);
	return exp;
}