I studied how to implement the general purpose language / DSL for the .NET platform. From what I saw, there are several tools that make implementing a language (source code analysis) relatively easy. Irony, Yacc, ANTLR ... problems with these projects are that some of them do not develop, some generate slow parsers, some of them cannot work on .NET Core CLR, etc. There is always some kind of obstacle that pushes me to the decision "write your own parser."
So, I was wondering ... Can I write my own parser and connect / integrate it with Roslyn? Are there any books, textbooks, or examples of how this can be done?
source share