How to create a new language for use in Visual Studio

前端 未结 7 1912
礼貌的吻别
礼貌的吻别 2020-11-28 17:42

I want to write a new templating language, and I want Visual Studio to \"support\" it. What I need to know is:

  1. How do I parse my new language?
7条回答
  •  情书的邮戳
    2020-11-28 18:30

    I found this very useful collection of recent samples for Visual Studio 2013 SDK: http://blogs.msdn.com/b/vsx/archive/2014/05/30/vs-2013-sdk-samples-released.aspx

    It also contains the recent version of the OokLanguage which sounds promising.

    We used ANTLR 4 to parse our language which works like a charm and allows direct interaction with C# code. Can totally recommend it.

提交回复
热议问题