3 ms·
I like the uniform output, nice work! I personally think its easier to use something like the `sublime-syntax` grammar format to define a lexer (with a project
by indentit 7y ago
I like the uniform output, nice work!
I personally think its easier to use something like the `sublime-syntax` grammar format to define a lexer (with a project like syntect[1]), rather than implementing each language's lexer as code, but that would need some extra annotation to get such a nice structured output. The bonus, however, if someone where to work on such an addition, would be that syntax highlighting will use the same engine and deal with incomplete/incorrect code consistently
[1]: https://github.com/trishume/syntect https://github.com/trishume/syntect