diff options
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r-- | trafgen_parser.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index b0e7e33..37c9a15 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -431,6 +431,8 @@ expression { $$ = $1 << $4; } | expression '>' '>' expression { $$ = $1 >> $4; } + | '-' expression + { $$ = -1 * $2; } | '(' expression ')' { $$ = $2;} ; |