| 307 | let budget = WALK_EVENT_BUDGET; |
| 308 | let cutoff = Infinity; |
| 309 | const condition = (expression: string): Truth => { |
| 310 | const text = expression.trim(); |
| 311 | if (/^(?:0x[\da-f]+|\d+)[uUlL]*$/i.test(text)) return Number(text.replace(/[uUlL]+$/, '')) !== 0; |
| 312 | const def = text.match(/^(!)?\s*defined\s*(?:\(\s*(\w+)\s*\)|(\w+))$/); |
| 313 | if (def) { |
| 314 | const known = definitions.get(def[2] ?? def[3]!)?.defined; |
| 315 | return def[1] ? not(known) : known; |
| 316 | } |
| 317 | return /^\w+$/.test(text) ? definitions.get(text)?.value : undefined; |
| 318 | }; |
| 319 | const scan = (file: string, inherited: Truth, includeLine?: number): void => { |
| 320 | if (inherited === false || once.get(file) === true || cutoff !== Infinity) return; |
| 321 | if (scanning.has(file)) { |