From cac651cd88f8da1e5957b0cc13fa25d79e1887fc Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 23 Aug 2016 20:58:50 +0200 Subject: Many things - two-letter AST union members - AST_QUOTED - AST_LAMBDA - an interpreter that works - function registering in the interpreter - some builtins --- inter_builtins.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 inter_builtins.h (limited to 'inter_builtins.h') 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); -- cgit v1.2.3-54-g00ecf