aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
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