3 ms·
On-the-Fly Syntax Highlighting Using Neural Networks
- belter 4y ago"...This paper delivers a deep learning-based approach suitable for on-the-fly grammatical code highlighting of correct and incorrect language derivations, such as code viewers and snippets... ...It focuses on alleviating the burden on the developers, who can reuse the language’s parsing strategy to produce the desired highlighting specification. Moreover, this approach is compared to nowadays online syntax highlighting tools and formal methods in terms of accuracy and execution time, across different levels of grammatical coverage, for three mainstream programming languages... ...The results obtained show how the proposed approach can consistently achieve near-perfect accuracy in its predictions, thereby outperforming regular expression-based strategies..." [PDF]: https://arxiv.org/pdf/2208.02815.pdf https://arxiv.org/pdf/2208.02815.pdf