edit · parser.ts2m
Read the whole module first. The public surface is four functions; everything else is private and free to move.
›Read · parser.ts
›Grep · callers of tokenize()
Refactor the parser — keep the public API exactly as it is.
Starting with the hot loop. The tokenizer allocates on every call, which is the real cost here.
›Edit · parser.ts
›Bash · run the unit tests