1
///
2
///
运算符类型(从上到下优先级依次递减),数值越大,优先级越低
3
///
4
public
enum
OperatorType
5
{
6
///
7
///
左括号:(,left bracket
8
///
9
LB
=
10
,
10
11
///
12
///
右括号),right bracket
13
///
14
RB
=
11
,
15
16
///
17
///
逻辑非,!,NOT
18
///
19
NOT
=
20
,
20
21
///
22
///
正号,+,positive sign
23
///
24
PS
=
21
,
25
26
///
27
///
负号,-,negative sign
28
///
29
NS
=
22
,
30
31
///
32
///
正切,tan
33
///
34
TAN
=
23
,
35
///
36
///
反正切,atan
37
///
38
ATAN
=
24
,
39
40
41
///
42
///
乘,*,multiplication
43
///
44
MUL
=
30
,
45
46
///
47
///
除,/,division
48
///
49
DIV
=
31
,
50
51
///
52
///
余,%,modulus
53
///
54
MOD
=
32
,
55
56
///
57
///
加,+,Addition
58
///
59
ADD
=
40
,
60
61
///
62
///
减,-,subtraction
63
///
64
SUB
=
41
,
65
66
///
67
///
小于,less than
68
///
69
LT
=
50
,
70
71
///
72
///
小于或等于,less than or equal to
73
///
74
LE
=
51
,
75
76
///
77
///
大于,>,greater than
78
///
79
GT
=
52
,
80
81
///
82
///
大于或等于,>=,greater than or equal to
83
///
84
GE
=
53
,
85
86
///
87
///
等于,=,equal to
88
///
89
ET
=
60
,
90
91
///
92
///
不等于,unequal to
93
///
94
UT
=
61
,
95
96
///
97
///
逻辑与,&,AND
98
///
99
AND
=
70
,
100
101
///
102
///
逻辑或,|,OR
103
///
104
OR
=
71
,
105
106
///
107
///
逗号,comma
108
///
109
CA
=
80
,
110
111
///
112
///
结束符号 @
113
///
114
END
=
255
,
115
116
///
117
///
错误符号
118
///
119
ERR
=
256
120
121
}