diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-08-23 20:58:50 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-08-23 20:58:50 +0200 |
commit | cac651cd88f8da1e5957b0cc13fa25d79e1887fc (patch) | |
tree | 38b2645803df92661b797a64f18772e691d3d8fd /inter_builtins.h | |
parent | 44602cb35735575c15cfcb92779337778649df8a (diff) |
Many things
- two-letter AST union members
- AST_QUOTED
- AST_LAMBDA
- an interpreter that works
- function registering in the interpreter
- some builtins
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); |