Can't integrate antlr 4 in the C# project again

77 views
Skip to first unread message

Minion Skywalker

unread,
May 7, 2018, 5:03:17 AM5/7/18
to antlr-discussion

I got a problem with a project using language parser tool antlr. First when i created project and installed antlr4, then it had succesfully integrated with a grammar file ECMAScript.g4, but once i added antlr3 framework and under this yet one grammar file JSDeobfucs.g and after that i tried to integrate this in the existing project, then project stopped building and files of lexer, parser, listener e.t.c. also are not created anymore, what outputs the compilation errors:


[Сбой] Файл 'C:\Users\Dima\Desktop\Projects\C#\JsAstVisitor\JsAstVisitor\obj\Debug\ECMAScriptBaseListener.cs' не найден.
[Сбой] Файл 'C:\Users\Dima\Desktop\Projects\C#\JsAstVisitor\JsAstVisitor\obj\Debug\ECMAScriptLexer.cs' не найден.
[Сбой] Файл 'C:\Users\Dima\Desktop\Projects\C#\JsAstVisitor\JsAstVisitor\obj\Debug\ECMAScriptListener.cs' не найден.
[Сбой] Файл 'C:\Users\Dima\Desktop\Projects\C#\JsAstVisitor\JsAstVisitor\obj\Debug\ECMAScriptParser.cs' не найден.


Sorry for Russian. Simply interface of Visual Studio translated Russian. But that errors mean what listed above files not found.


For integration antlr3 in the Visual Studio 2017 i followed next instruction.


Althought it is strangely what similar instruction isn't created for Visual Studio 2017, so as project antlr build by target differs not only from depending on the antlr framework version

, but on the Visual Studio version. As well as, what in latest version of Visual Studio antlr 3 and 4 not suppored over graphical nuget package manager, but only over nuget manager console i can install them. Here is link to my project( i can't attach archive with a project here because google groups are not supported all file types excluding images ).


Therefore please say me:


  1. What is problem can be here in ?
  2. How to resolve it ?
  3. Is it really that in Visual Studio in one C# project two different versions of antlr conflict and will conflict with each other ???
  4. If two version of antlr conflicts in single project, then how to do now that antlr4 again works in my current project at least and in the same time i wouldn't do project initially, if this is possibly of course ???

Minion Skywalker

unread,
May 13, 2018, 4:14:37 AM5/13/18
to antlr-discussion
Guys. Are you hear me ? Why you don't answer to me ?

Mike Lischke

unread,
May 13, 2018, 5:15:10 AM5/13/18
to antlr-discussion
>
> Guys. Are you hear me ? Why you don't answer to me ?

Dima, when you get no answer then there’s likely nobody willing and able to help. As simple as that. Try other help resources (like Stackoverflow.com) and/or try to come up with a changed approach or better description or whatever could help to attract people to help you.

Mike
--
www.soft-gems.net

Minion Skywalker

unread,
May 13, 2018, 6:29:41 PM5/13/18
to antlr-discussion
Mike, trust me, my explation is good and i'm written post with this question on the steckoverflow.com a long ago. Sam Harwell (one of antlr developers ) said me to post this question here: https://github.com/tunnelvisionlabs/antlr4cs/issues , but there is no one answered to me. Sorry for my bad English in this time. 
Reply all
Reply to author
Forward
0 new messages