summaryrefslogtreecommitdiff
path: root/inter_builtins.h
blob: e843b5e32b717699d51ad63d3fd119ba3dfeb181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "ast.h"
#include "interpreter.h"

InterRet builtin_do(InterState *is,int nargs,AST **args);
InterRet builtin_if(InterState *is,int nargs,AST **args);

InterRet builtin_print(InterState *is,int nargs,AST **args);

InterRet builtin_equals(InterState *is,int nargs,AST **args);
InterRet builtin_greater(InterState *is,int nargs,AST **args);
InterRet builtin_greaterequals(InterState *is,int nargs,AST **args);
InterRet builtin_less(InterState *is,int nargs,AST **args);
InterRet builtin_lessequals(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);

InterRet builtin_define(InterState *is,int nargs,AST **args);