diff options
Diffstat (limited to 'inter_builtins.h')
-rw-r--r-- | inter_builtins.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/inter_builtins.h b/inter_builtins.h new file mode 100644 index 0000000..6dc935d --- /dev/null +++ b/inter_builtins.h @@ -0,0 +1,13 @@ +#pragma once + +#include "ast.h" + +typedef struct InterRet InterRet; + +InterRet builtin_do(InterState *is,int nargs,AST **args); +InterRet builtin_print(InterState *is,int nargs,AST **args); +InterRet builtin_sum(InterState *is,int nargs,AST **args); +InterRet builtin_difference(InterState *is,int nargs,AST **args); +InterRet builtin_product(InterState *is,int nargs,AST **args); +InterRet builtin_quotient(InterState *is,int nargs,AST **args); +InterRet builtin_remainder(InterState *is,int nargs,AST **args); |