diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-26 13:55:33 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-26 13:55:33 -0800 |
commit | 20bd9521cd558e39eca4aac5f3db8e390f49ba2d (patch) | |
tree | ec7d99825c003ff5e06f224cd3c4009a5dde6d20 /include/builtins.h | |
parent | 2750e54a2ad5afeabb7093fc10e9fb686b6f6059 (diff) |
Change README
Diffstat (limited to 'include/builtins.h')
-rw-r--r-- | include/builtins.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/builtins.h b/include/builtins.h index 3b87aff..a21b436 100644 --- a/include/builtins.h +++ b/include/builtins.h @@ -3,21 +3,27 @@ #include <stem.h> /*! @brief adds two numbers together, pushes result on the stack */ +/*! call in stem with num1 num2 + => num */ void stemadd(value_t *v); /*! @brief subtracts two numbers together, pushes result on the stack */ +/*! call in stem with num1 num2 - => num */ void stemsub(value_t *v); /*! @brief multiplies two numbers together, pushes result on the stack */ +/*! call in stem with num1 num2 * => num */ void stemmul(value_t *v); /*! @brief divides two numbers together, pushes result on the stack */ +/*! call in stem with num1 num2 / => num */ void stemdiv(value_t *v); -/*! @brief [word] [quote] func, creates function with name [word] and value - * [quote] */ +/*! @brief creates function with name [word] and value [quote] */ +/*! call with `word value def`. */ void stemfunc(value_t *v); +/* @brief Inserts a value into a string or quote. */ +/* call with `[quote/string] value index insert` */ void steminsert(value_t *v); /*! @brief takes first number to the power of the second, pushes result on the |