aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorc2024-04-20 09:34:44 -0400
committerc2024-04-20 09:34:44 -0400
commit44d1f80279000efddbd8f24108f33297a9d2ad52 (patch)
treec4d8d67f4d4a332cd603d448593741cbb01d22ee /src/include
parentc26ffc484d30dce65754c0081baa5402346c703a (diff)
Multiplication may now be possible.
It may have been possible before, too.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/doer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/doer.h b/src/include/doer.h
index 14f0a31..24f3911 100644
--- a/src/include/doer.h
+++ b/src/include/doer.h
@@ -75,6 +75,9 @@ static tree_type_t blin_add_args[] = { TREE_TYPE_LINT, TREE_TYPE_LINT };
// `-`: Subtract two integers.
tree_t* blin_sub(doer_t* doer);
static tree_type_t blin_sub_args[] = { TREE_TYPE_LINT, TREE_TYPE_LINT };
+// `*`: Multiply two integers.
+tree_t* blin_mul(doer_t* doer);
+static tree_type_t blin_mul_args[] = { TREE_TYPE_LINT, TREE_TYPE_LINT };
void doer_do_call(doer_t* doer);
tree_t* doer_do_call_blin(doer_t* doer);
@@ -95,6 +98,7 @@ static blinf_t blinfs[] = {
{ blin_str_cat, TREE_TYPE_LSTR, blin_str_cat_args, "str_cat" },
{ blin_add, TREE_TYPE_LINT, blin_add_args, "+" },
{ blin_sub, TREE_TYPE_LINT, blin_sub_args, "-" },
+ { blin_mul, TREE_TYPE_LINT, blin_mul_args, "*" },
};
#endif