64 explicit Token(
int myTok) : tok {myTok} {}
65 Token(
int myTok,
int myIntValue) : tok {myTok}, intValue {myIntValue} {}
66 Token(
int myTok,
const std::any& myValue) : tok {myTok}, value {myValue} {}
67 Token(
int MyTok,
int myIntValue,
const std::any& myValue) :
68 tok {MyTok}, intValue {myIntValue}, value {myValue} {}
70 static constexpr int nada = 0;
71 static constexpr int identifier = 1;
72 static constexpr int integer = 2;
73 static constexpr int decimal = 3;
74 static constexpr int string = 4;
75 static constexpr int unknown = 5;
76 static constexpr int keyword = 6;
77 static constexpr int whitespace = 7;
78 static constexpr int comment = 8;
79 static constexpr int endofline = 9;
80 static constexpr int endofstatement = 10;
82 static constexpr int command = (1 << 8);
83 static constexpr int expressionCommand = (1 << 9);
84 static constexpr int expression = (1 << 10);
92 static constexpr int dynamic = (1 << 12);
95 static constexpr int atomproperty = (1 << 12) | expression |
negnums;
97 static constexpr int comparator = (1 << 13) | expression;
98 static constexpr int predefinedset = (1 << 14) | expression;
99 static constexpr int embeddedExpression = (1 << 15);
100 static constexpr int index = (1 << 16) | expression;
102 static constexpr int define = command | expressionCommand | 1;
103 static constexpr int select = command | expressionCommand | 2;
109 static constexpr int leftparen = expression | 0;
110 static constexpr int rightparen = expression | 1;
111 static constexpr int to = expression | 2;
112 static constexpr int opAnd = expression | 3;
113 static constexpr int opOr = expression | 4;
114 static constexpr int opNot = expression | 5;
115 static constexpr int within = expression | dynamic | 6;
116 static constexpr int asterisk = expression | 7;
117 static constexpr int dot = expression | 8;
118 static constexpr int all = expression | 9;
119 static constexpr int none = expression | 10;
120 static constexpr int name = expression | 11;
121 static constexpr int hull = expression | dynamic | 12;
122 static constexpr int alphahull = expression | dynamic | 13;
128 static constexpr int expressionBegin = expression | 100;
129 static constexpr int expressionEnd = expression | 101;
131 static constexpr int mass = atomproperty | 0;
132 static constexpr int charge = atomproperty | dynamic | 1;
133 static constexpr int x = atomproperty | dynamic | 2;
134 static constexpr int y = atomproperty | dynamic | 3;
135 static constexpr int z = atomproperty | dynamic | 4;
136 static constexpr int r = atomproperty | dynamic | 5;
137 static constexpr int wrappedX = atomproperty | dynamic | 6;
138 static constexpr int wrappedY = atomproperty | dynamic | 7;
139 static constexpr int wrappedZ = atomproperty | dynamic | 8;
140 static constexpr int atomno = atomproperty | 9;
142 static constexpr int opGT = comparator | dynamic | 0;
143 static constexpr int opGE = comparator | dynamic | 1;
144 static constexpr int opLE = comparator | dynamic | 2;
145 static constexpr int opLT = comparator | dynamic | 3;
146 static constexpr int opEQ = comparator | dynamic | 4;
147 static constexpr int opNE = comparator | dynamic | 5;
149 static Token tokenExpressionBegin;
150 static Token tokenExpressionEnd;