Exemplo n.º 1
0
AST_exp_n_t * AST_exp_char_constant
(
    parser_location_p location,
    char 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_char_constant(location, value);
	return exp;
}
Exemplo n.º 2
0
AST_exp_n_t * AST_exp_char_constant(char 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_char_constant(value);
	return exp;
}