-
Hello, I have a hard time building ANTLR4. I tried to create a simple language just to get used to ANTLR4 but with no success. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The compilation error could be caused by a number of issues. I would check that the |
Beta Was this translation helpful? Give feedback.
The compilation error could be caused by a number of issues. I would check that the
package
statement is the same betweenMainWindow.xaml.cs
and the generated files for the visitorArithmeticBaseVisitor.cs
and parserArithmeticGrammarParser.cs
. In the future, please post the code since pictures of the IDE do not show the entire code, including the .csproj. Also, you should not be using antlr4 and antlr4.runtime. These packages are five years old, and unsupported. The official Antlr package to use is antlr4.runtime.standard. To do the build, you should add in my package antlr4buildtasks, a drop-in replacement for the build rules for antlr4. Antlr4BuildTasks fixes many bugs in antlr4.