commonMain.piacenti.dslmaker.structures.strategies.pretokenizestrategy.Token.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsl-maker-js Show documentation
Show all versions of dsl-maker-js Show documentation
Kotlin multiplatform library to facilitate creation of DSLs with ANTLR or a simple built in parser
package piacenti.dslmaker.structures.strategies.pretokenizestrategy
import piacenti.dslmaker.interfaces.TokenDefinition
/**
* @author Piacenti
*/
@Suppress("unused")
class Token(val definition: TokenDefinition, val value: String, private val untrimmed: String, val startIndex: Int, val endIndex: Int) {
fun print(): String {
return untrimmed
}
override fun toString(): String {
return "Token{" +
"constant=" + definition +
", value='" + value + '\''.toString() +
'}'.toString()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy