Skip to content

How to translate this 2p-specific code in 2p-kt? #16

Answered by gciatto
enrdenti asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @enrdenti.

Here's a complete rewrite of your code.

There are a couple of things to be taken into account:

  1. you need to have at least modules :solve-classic and :parser-theory (as well as their direct and indirect dependencies) in your classpath, as you need both resolution facilities (term representation + unification + theories + resolution) and parsing facilities (for both terms and theories)

    • hence, if you manage dependencies with Gradle (like I do here you may be willing to add the following section:
    dependecies {
        implementation("it.unibo.tuprolog:solve-classic-jvm:$tuprologVersion")
        implementation("it.unibo.tuprolog:parser-theory-jvm:$tuprologVersion")
    }
  2. you have to…

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@gciatto
Comment options

@gciatto
Comment options

@enrdenti
Comment options

enrdenti Oct 25, 2021
Collaborator Author

@gciatto
Comment options

@enrdenti
Comment options

enrdenti Oct 25, 2021
Collaborator Author

Answer selected by enrdenti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants