forked from HuoLanguage/huo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
core_functions.h
23 lines (20 loc) · 950 Bytes
/
core_functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _CORE_FUNCTIONS_H
#define _CORE_FUNCTIONS_H
#include "structures.h"
void print(struct Value a);
struct Value add(struct Value a, struct Value b);
struct Value mul(struct Value a, struct Value b);
struct Value sub(struct Value a, struct Value b);
struct Value divide(struct Value a, struct Value b);
struct Value concat(struct Value a, struct Value b);
struct Value not(struct Value a, struct Value b);
struct Value equals(struct Value a, struct Value b);
struct Value length(struct Value a);
struct Value array_index(struct Value a, struct Value arr);
struct Value array_push(struct Value a, struct Value arr);
struct Value array_add(struct Value a, struct Value b);
struct Value array_set(struct Value index, struct Value item, struct Value array);
struct Value substring(int start, int end, struct Value str);
struct Value split_string(struct Value a, struct Value str);
struct Value greater_than(struct Value a, struct Value b);
#endif