commonMain.tel.schich.parserkombinator.ParserResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parser-kombinator Show documentation
Show all versions of parser-kombinator Show documentation
A simple parser combinator framework.
package tel.schich.parserkombinator
sealed interface ParserResult {
val rest: StringSlice
data class Ok(val value: T, override val rest: StringSlice) : ParserResult
data class Error(val message: String, override val rest: StringSlice) : ParserResult
}