-
Notifications
You must be signed in to change notification settings - Fork 1
/
stringvalues.h
97 lines (93 loc) · 2.41 KB
/
stringvalues.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#ifndef SCONSTANT
#define SCONSTANT(name, s)
#endif
#ifndef SYMCONSTANT
#define SYMCONSTANT(name)
#endif
SCONSTANT(EmptyString, "")
SCONSTANT(RuntimeException, "RuntimeException")
SCONSTANT(any_, "any")
SCONSTANT(error, "error")
SCONSTANT(Number, "Number")
SCONSTANT(array_, "array")
SCONSTANT(hashmap, "hashmap")
SCONSTANT(range, "range")
SCONSTANT(Nil, "Nil")
SCONSTANT(repl, "repl")
SCONSTANT(true_, "true")
SCONSTANT(false_, "false")
SCONSTANT(GcObject, "GcObject")
SCONSTANT(Boolean, "Boolean")
SCONSTANT(str, "str")
SCONSTANT(nil, "nil")
#define TYPE(r, n) SCONSTANT(type_##n, #n)
#include "valuetypes.h"
#define MODULE(x, y) SCONSTANT(x, #x)
#include "modules.h"
SCONSTANT(sym_dot, ".")
SCONSTANT(sig_array_1, "array(_)")
SCONSTANT(sig_hashmap_0, "hashmap()")
SCONSTANT(sig_constructor_0, "()")
SCONSTANT(sig_add, "+(_)")
SCONSTANT(sig_sub, "-(_)")
SCONSTANT(sig_mul, "*(_)")
SCONSTANT(sig_div, "/(_)")
SCONSTANT(sig_eq, "==(_)")
SCONSTANT(sig_neq, "!=(_)")
SCONSTANT(sig_less, "<(_)")
SCONSTANT(sig_lesseq, "<=(_)")
SCONSTANT(sig_greater, ">(_)")
SCONSTANT(sig_greatereq, ">=(_)")
SCONSTANT(sig_band, "&(_)")
SCONSTANT(sig_bor, "|(_)")
SCONSTANT(sig_bnot, "~()")
SCONSTANT(sig_bxor, "^(_)")
SCONSTANT(sig_blshift, "<<(_)")
SCONSTANT(sig_brshift, ">>(_)")
SCONSTANT(sig_subscript_get, "[](_)")
SCONSTANT(sig_subscript_set, "[](_,_)")
SCONSTANT(sig_neg, "-()")
SCONSTANT(sig_incr, "++(_)")
SCONSTANT(sig_decr, "--(_)")
SCONSTANT(sig_hash, "hash()")
SCONSTANT(sig_str, "str()")
SCONSTANT(sig_str1, "str(_)")
SCONSTANT(sig_fmt, "fmt(_)")
SCONSTANT(sig_fmt2, "fmt(_,_)")
SCONSTANT(sig_derive, " derive(_)")
SCONSTANT(sig_next, "next()")
SCONSTANT(field_has_next, "has_next")
SCONSTANT(undefined, "<undefined>")
SYMCONSTANT(sig_add)
SYMCONSTANT(sig_sub)
SYMCONSTANT(sig_mul)
SYMCONSTANT(sig_div)
SYMCONSTANT(sig_eq)
SYMCONSTANT(sig_neq)
SYMCONSTANT(sig_less)
SYMCONSTANT(sig_lesseq)
SYMCONSTANT(sig_greater)
SYMCONSTANT(sig_greatereq)
SYMCONSTANT(sig_band)
SYMCONSTANT(sig_bor)
SYMCONSTANT(sig_bnot)
SYMCONSTANT(sig_bxor)
SYMCONSTANT(sig_blshift)
SYMCONSTANT(sig_brshift)
SYMCONSTANT(sig_subscript_get)
SYMCONSTANT(sig_subscript_set)
SYMCONSTANT(sig_incr)
SYMCONSTANT(sig_decr)
SYMCONSTANT(sig_neg)
SYMCONSTANT(sig_constructor_0)
SYMCONSTANT(str)
SYMCONSTANT(sig_hash)
SYMCONSTANT(sig_str)
SYMCONSTANT(sig_str1)
SYMCONSTANT(sig_fmt)
SYMCONSTANT(sig_fmt2)
SYMCONSTANT(sig_derive)
SYMCONSTANT(field_has_next)
SYMCONSTANT(sig_next)
#undef SCONSTANT
#undef SYMCONSTANT