aboutsummaryrefslogtreecommitdiff
path: root/src/formatter/utils.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-26 14:58:51 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-26 14:58:51 -0400
commitcb1d36c6d8bc84f3422c71ab3eb29606e80f7837 (patch)
tree0c4c56effdcf258e9807f8d0257d6e445598b70f /src/formatter/utils.c
parentd25d5642392f93623d1eb4d11156d293fe6df546 (diff)
Formatting for reductions
Diffstat (limited to 'src/formatter/utils.c')
-rw-r--r--src/formatter/utils.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/formatter/utils.c b/src/formatter/utils.c
index a032ec2f..fa4ec806 100644
--- a/src/formatter/utils.c
+++ b/src/formatter/utils.c
@@ -74,44 +74,6 @@ CONSTFUNC ast_t *unwrap_block(ast_t *ast) {
return ast;
}
-CONSTFUNC const char *binop_tomo_operator(ast_e tag) {
- switch (tag) {
- case Power: return "^";
- case PowerUpdate: return "^=";
- case Concat: return "++";
- case ConcatUpdate: return "++=";
- case Multiply: return "*";
- case MultiplyUpdate: return "*=";
- case Divide: return "/";
- case DivideUpdate: return "/=";
- case Mod: return "mod";
- case ModUpdate: return "mod=";
- case Mod1: return "mod1";
- case Mod1Update: return "mod1=";
- case Plus: return "+";
- case PlusUpdate: return "+=";
- case Minus: return "-";
- case MinusUpdate: return "-=";
- case LeftShift: return "<<";
- case LeftShiftUpdate: return "<<=";
- case RightShift: return ">>";
- case RightShiftUpdate: return ">>=";
- case And: return "and";
- case AndUpdate: return "and=";
- case Or: return "or";
- case OrUpdate: return "or=";
- case Xor: return "xor";
- case XorUpdate: return "xor=";
- case Equals: return "==";
- case NotEquals: return "!=";
- case LessThan: return "<";
- case LessThanOrEquals: return "<=";
- case GreaterThan: return ">";
- case GreaterThanOrEquals: return ">=";
- default: return NULL;
- }
-}
-
OptionalText_t termify_inline(ast_t *ast, Table_t comments) {
if (range_has_comment(ast->start, ast->end, comments)) return NONE_TEXT;
switch (ast->tag) {