I will try to explain in more detail. I have a thesis and I need to submit a program in C #, one of the tasks for which is to process lexical elements of javascript code. I use visual studio 2013. To begin with, I installed ALTNR4 on Windows, following all the steps that are written on the official site www.antlr.org. OK. Further, to implement this in the C # project, I installed the dll in it accordingly, which was attached to the folder with various runtime: C: ... \ antlr4-4.5.3 \ runtime \ CSharp \ antlr-csharp-runtime- 4.5.3 \ Antlr4.Runtime.dll. However, I did not find a single class in Antlr4.Runtime.dll, which is associated with parsing javascript code and building Ast trees based on the concept of javascript (a class similar to JavascriptLexer should be simply attached, but again I did not find it). However, I heard that antlr has a special javascript code grammar description file (ECMAScript) for JavaScript. But how can I use ECMAScript for my Antlr4 in a C # project in visual studio to get the namespace from it, responsible for describing the syntax of the javascript source code (with the JavascriptLexer class and the like) and using javascript to create an ast tree from my source code and walking through respectively for all its nodes? And then something about using the ECMAScript grammar file in C # for Visual Studio does not find anything sensible

  • Sorry. It turns out I was wrong. antlr does not support the C # language since this lib is written for all 87% of java. - Minion Skywalker

0