-
Notifications
You must be signed in to change notification settings - Fork 2
/
func.h
35 lines (32 loc) · 1018 Bytes
/
func.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
struct value;
value print(value v);
value __add__(value x, value y);
value __sub__(value x, value y);
value __mul__(value x, value y);
value __truediv__(value x, value y);
value __mod__(value x, value y);
value __len__(value self);
value __getitem__(value self, value k);
value __contains__(value self, value v);
value __setitem__(value self, value k, value v);
value __delitem__(value self, value k);
value __bool__(value self);
value __eq__(value x, value y);
value __ne__(value x, value y);
value __ge__(value x, value y);
value __gt__(value x, value y);
value __lt__(value x, value y);
value __le__(value x, value y);
value __and__(value x, value y);
value __or__(value x, value y);
value __xor__(value x, value y);
value __invert__(value self);
value __lshift__(value x, value y);
value __rshift__(value x, value y);
value __iter__(value self);
value __next__(value self);
value append(value self, value v);
value add(value self, value v);
value remove(value self, value v);
value pop(value self);