GithubHelp home page GithubHelp logo

Comments (5)

sdcondon avatar sdcondon commented on May 26, 2024

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.

sui0528 avatar sui0528 commented on May 26, 2024

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.

sui0528 avatar sui0528 commented on May 26, 2024

Please forgive me if I don't make myself clear, my English is not good.

from scfirstorderlogic.

sui0528 avatar sui0528 commented on May 26, 2024

from scfirstorderlogic.

sdcondon avatar sdcondon commented on May 26, 2024

Glad to hear it. Good luck, have fun!

from scfirstorderlogic.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.