Skip to content
Snippets Groups Projects
Commit 000b6375 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Handle unary ~ operator.

parent d03367df
No related branches found
No related tags found
No related merge requests found
......@@ -287,6 +287,10 @@ protected:
} else if ((*_lex)->is(T_PLUS)) {
++(*_lex);
process_primary();
} else if ((*_lex)->is(T_TILDE)) {
++(*_lex);
process_primary();
_value.set_long(~ _value.l);
} else if ((*_lex)->is(T_EXCLAIM)) {
++(*_lex);
process_primary();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment