Package-level declarations
Types
Base class for the clikt commands that make up the 2P-Kt REPL CLI (TuPrologCmd and its solve subcommand TuPrologSolveQuery): it factors out everything both commands need to interact with a user at a terminal -- reading (possibly multi-line, dot-terminated) Prolog queries, and printing the it.unibo.tuprolog.solve.Solutions a it.unibo.tuprolog.solve.Solver produces for them -- so that subclasses only have to configure clikt options/arguments and implement run.
Signals that the REPL's standard input stream ended (returned null) while a query or a continuation line was expected, e.g. because the terminal was closed or stdin reached end-of-file.
Root clikt command of the 2P-Kt REPL: java -jar 2p-repl.jar.
The solve subcommand of TuPrologCmd: java -jar 2p-repl.jar solve QUERY [-n N].
Functions
Tells whether path denotes a file that exists and can be read on the current platform.
JS implementation: not yet provided.
JS implementation: not yet provided.
JVM implementation: reads path's full content with File.readText and parses it via :parser-theory's Theory.parse extension.
JS entry point of the 2P-Kt REPL CLI: builds TuPrologCmd with its solve subcommand (TuPrologSolveQuery) and hands args to clikt for parsing and execution -- mirroring the JVM entry point in Main.kt.
JVM entry point of the 2P-Kt REPL CLI: builds TuPrologCmd with its solve subcommand (TuPrologSolveQuery) and hands args to clikt for parsing and execution.