3 ms·
Since it's for a code editor and using trees, I wonder if directly using an AST would be a good idea. You don't need to store strings for keywords like "functio
by hiccuphippo 2y ago
Since it's for a code editor and using trees, I wonder if directly using an AST would be a good idea. You don't need to store strings for keywords like "function" or "while", and you get syntax highlight and formatting basically for free.
- singinwhale 2y agoAn AST is dependent on the Language Server though and thus not available for every file by default.