All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.it.unibo.tuprolog.solve.channel.Channels.kt Maven / Gradle / Ivy

package it.unibo.tuprolog.solve.channel

import it.unibo.tuprolog.solve.exception.PrologWarning

internal actual fun stdin(): InputChannel {
    return InputStreamChannel(System.`in`)
}

internal actual fun  stderr(): OutputChannel {
    return OutputChannel.of { System.err.print(it) }
}

internal actual fun  stdout(): OutputChannel {
    return OutputChannel.of { print(it) }
}

internal actual fun warning(): OutputChannel {
    return OutputChannel.of { System.err.println(it.message) }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy