summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-06 23:44:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-06 23:44:54 (GMT)
commit5a200ff57787261d9390cdffbd227121040ab208 (patch)
tree781eb423dd94a138039b0757f69bac6b7fd30ae7 /src/analysis
parentfa2ac321528fbba5fa9eb15ee6ae87803fb54bb3 (diff)
Cosmetic.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/scan/grammar.y22
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 }); }
;