Compiler provided language grammar


I’ve got a language, whose compiler is able to output detailed information about the grammar of currently parsed file. Would it be possible to use this information instead of the tmLanguage (or any other regex-based gramar description format) to provide the grammar for Atom’s highlighter?

Compilers are able to provide much better description than regex-based tools (sometimes based on inferred types, or available or missing symbols) and the work don’t need to be duplicated. Moreover, such solution would be much faster, because Atom won’t need to run many regexps matches over the text, it just gets information about meaning of each part of source code.


Sounds like the next level stuff. I love it.


This is a duplicate of a multiple previous topics including:

We like to unify similar discussions under one topic so that people don’t have to read a bunch of different threads to get the whole story. Please continue the discussion there. I’ll be closing this topic as duplicate.

closed #4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.