commonMain.piacenti.dslmaker.interfaces.Parser.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.interfaces
import piacenti.dslmaker.abstraction.ProductionStep
interface Parser {
//TODO bring both version 1 and 2 of parsers under a common interface
fun parse(text: String, matchEntireText: Boolean = false, tokenizeFirst: Boolean = false):Any?
val highestIndexParsed: Int
val possibleValidTokensIfContinuingParsing: Set
val expectedTokenNotMatched: Set
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy