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