jsMain.com.copperleaf.kudzu.KudzuPlatform.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kudzu-core-js Show documentation
Show all versions of kudzu-core-js Show documentation
A monadic (I think...) recursive-descent parser written in Kotlin
package com.copperleaf.kudzu
/**
* Acutal/expect declarations for Kudzu
*/
actual object KudzuPlatform {
actual fun isLetter(char: Char): Boolean {
return char in (('a'..'z') + ('A'..'Z'))
}
actual fun isDigit(char: Char): Boolean {
return char in ('0'..'9')
}
actual fun isLetterOrDigit(char: Char): Boolean {
return isLetter(char) || isDigit(char)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy