Comments (5)
Hello! No problem!
So, what appears to have gone wrong here is that ANTLR has failed to generate some source code from the grammar file in the solution. What is supposed to happen is that a target added by the Antlr4BuildTasks NuGet package processes the FirstOrderLogic.g4 file (in SentenceCreation) to output the source code for the classes you mention here. Then they get compiled along with everything else - ultimately giving you the SentenceParser.Parse("∀ x, ..")
functionality.
I have explicitly excluded these generated files from the repo (see the top of the .gitignore file) because they shouldn't need to be checked in - the grammar file and the ANTLR setup in the project file should suffice for them to be generated for you whenever you build. If I need to, I suppose I could be persuaded to add them to the repo so that it doesn't matter if the ANTLR build task isn't working for you - but of course this wouldn't help anyone who wants to play with the grammar definition - so it's not my preferred solution.
Could I possibly ask you for some more information? I'm looking for any errors that the ANTLR build task produced in the build output. I can give in-depth instructions if you need them, but, if you are using build output verbosity of at least "normal", very early in your build output you should see a line that reads 1>Target Antlr4Compile:
. Below that, there will be output from it trying to generate these classes. I strongly suspect that you will see some errors here.
As mentioned in the README, ANTLR is ultimately a Java tool - so it might need to download an instance of the "Java Runtime Environment" in order to run it. My initial guess is that something is going wrong with that - an access failure or somesuch. To be clear, what this will help me decide is if I can just add some more content to the readme to help people like you get ANTLR working, or if I should just add the latest generated files to the repo (which as mentioned above, is not a "complete" solution).
from scfirstorderlogic.
Oh, I think I got it. Thank you for your fast reply.
I just use the code in one of my Unity (a game engine) projects, so I don't open the solution but just copy the code to the Unity project folder.
I am not familiar with ANTLR, I am not sure how to use it in Unity.
If you are familiar with Unity, could you offer some advice on getting your code into Unity, if possible?
Thank you so much!
from scfirstorderlogic.
Please forgive me if I don't make myself clear, my English is not good.
from scfirstorderlogic.
from scfirstorderlogic.
Glad to hear it. Good luck, have fun!
from scfirstorderlogic.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scfirstorderlogic.