| 14143 | /*#__PURE__*/ |
| 14144 | function () { |
| 14145 | function MacroExpander(input, settings, mode) { |
| 14146 | this.settings = void 0; |
| 14147 | this.expansionCount = void 0; |
| 14148 | this.lexer = void 0; |
| 14149 | this.macros = void 0; |
| 14150 | this.stack = void 0; |
| 14151 | this.mode = void 0; |
| 14152 | this.settings = settings; |
| 14153 | this.expansionCount = 0; |
| 14154 | this.feed(input); // Make new global namespace |
| 14155 | |
| 14156 | this.macros = new Namespace_Namespace(macros, settings.macros); |
| 14157 | this.mode = mode; |
| 14158 | this.stack = []; // contains tokens in REVERSE order |
| 14159 | } |
| 14160 | /** |
| 14161 | * Feed a new input string to the same MacroExpander |
| 14162 | * (with existing macros etc.). |