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

There is a newer version: 1.0.4
Show newest version
package it.unibo.tuprolog.solve.channel

import it.unibo.tuprolog.solve.exception.Warning
import java.io.StringReader

internal actual fun stdin(): InputChannel = ReaderChannel(System.`in`)

internal actual fun  stderr(): OutputChannel = PrintStreamChannel(System.err)

internal actual fun  stdout(): OutputChannel = PrintStreamChannel(System.out)

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

internal actual fun stringInputChannel(string: String): InputChannel = ReaderChannel(StringReader(string))




© 2015 - 2025 Weber Informatics LLC | Privacy Policy