Commit d05a6510 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

support unary ~ operator

2006-11-06  Jürg Billeter  <j@bitron.ch>

	* vala/parser.y: support unary ~ operator

svn path=/trunk/; revision=169
parent 43b536ac
2006-11-06 Jürg Billeter <j@bitron.ch>
* vala/parser.y: support unary ~ operator
2006-11-06 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: use g_value_set_object for interfaces
......
......@@ -820,6 +820,13 @@ unary_expression
g_object_unref (src);
g_object_unref ($2);
}
| TILDE unary_expression
{
ValaSourceReference *src = src(@1);
$$ = VALA_EXPRESSION (vala_unary_expression_new (VALA_UNARY_OPERATOR_BITWISE_COMPLEMENT, $2, src));
g_object_unref (src);
g_object_unref ($2);
}
| pre_increment_expression
| pre_decrement_expression
| REF unary_expression
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment