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