MCPcopy Create free account
hub / github.com/TruthHun/BookStack / MacroExpander

Function MacroExpander

static/katex/katex.js:14145–14159  ·  view source on GitHub ↗
(input, settings, mode)

Source from the content-addressed store, hash-verified

14143/*#__PURE__*/
14144function () {
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.).

Callers

nothing calls this directly

Calls 1

feedMethod · 0.80

Tested by

no test coverage detected