(input, settings)
| 12828 | class Lexer { |
| 12829 | // category codes, only supports comment characters (14) for now |
| 12830 | constructor(input, settings) { |
| 12831 | this.input = void 0; |
| 12832 | this.settings = void 0; |
| 12833 | this.tokenRegex = void 0; |
| 12834 | this.catcodes = void 0; |
| 12835 | // Separate accents from characters |
| 12836 | this.input = input; |
| 12837 | this.settings = settings; |
| 12838 | this.tokenRegex = new RegExp(tokenRegexString, 'g'); |
| 12839 | this.catcodes = { |
| 12840 | "%": 14 // comment character |
| 12841 | |
| 12842 | }; |
| 12843 | } |
| 12844 | |
| 12845 | setCatcode(char, code) { |
| 12846 | this.catcodes[char] = code; |
nothing calls this directly
no outgoing calls
no test coverage detected