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

commonMain.org.antlr.v4.kotlinruntime.AbstractCharStreams.kt Maven / Gradle / Ivy

package org.antlr.v4.kotlinruntime

import kotlin.jvm.JvmOverloads

abstract class AbstractCharStreams {
    /**
     * Creates a [CharStream] given a [String] and the `sourceName`
     * from which it came.
     */
    @JvmOverloads
    fun fromString(s: String, sourceName: String = IntStream.UNKNOWN_SOURCE_NAME): CharStream {
        return StringCharStream(s, sourceName)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy