diff options
-rw-r--r-- | src/analysis/scan/grammar.y | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/analysis/scan/grammar.y b/src/analysis/scan/grammar.y index 898b135..d0aeb90 100644 --- a/src/analysis/scan/grammar.y +++ b/src/analysis/scan/grammar.y @@ -371,20 +371,20 @@ string_decl : IDENTIFIER ASSIGN PLAIN_STRING } | UNSIGNED_INTEGER KB { - unsigned long long __converted; - __converted = $1 * 1024; + unsigned long long __converted; + __converted = $1 * 1024; $$ = g_scan_literal_expression_new(LVT_UNSIGNED_INTEGER, &__converted); } | UNSIGNED_INTEGER MB { - unsigned long long __converted; - __converted = $1 * 1048576; + unsigned long long __converted; + __converted = $1 * 1048576; $$ = g_scan_literal_expression_new(LVT_UNSIGNED_INTEGER, &__converted); } | UNSIGNED_INTEGER GB { - unsigned long long __converted; - __converted = $1 * 1073741824; + unsigned long long __converted; + __converted = $1 * 1073741824; $$ = g_scan_literal_expression_new(LVT_UNSIGNED_INTEGER, &__converted); } | STRING @@ -492,14 +492,14 @@ relational_expr : cexpression "<" cexpression { $$ = g_scan_relational_operatio } ; - arithm_expr : cexpression "+" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_PLUS, $1, $3); } - | cexpression "-" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_MINUS, $1, $3); } - | cexpression "*" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_MUL, $1, $3); } + arithm_expr : cexpression "+" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_PLUS, $1, $3); } + | cexpression "-" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_MINUS, $1, $3); } + | cexpression "*" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_MUL, $1, $3); } | cexpression "/" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_DIV, $1, $3); } - | cexpression "%" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_MOD, $1, $3); } + | cexpression "%" cexpression { $$ = g_scan_arithmetic_operation_new(AEO_MOD, $1, $3); } ; -set_counter : "none" "of" "them" { $$ = g_scan_literal_expression_new(LVT_BOOLEAN, (bool []){ true }); } +set_counter : "none" "of" "them" { $$ = g_scan_literal_expression_new(LVT_BOOLEAN, (bool []){ true }); } | "any" "of" "them" { $$ = g_scan_literal_expression_new(LVT_BOOLEAN, (bool []){ true }); } | "all" "of" "them" { $$ = g_scan_literal_expression_new(LVT_BOOLEAN, (bool []){ true }); } ; |