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

commonMain.piacenti.dslmaker.interfaces.Parser.kt Maven / Gradle / Ivy

Go to download

Kotlin multiplatform library to facilitate creation of DSLs with ANTLR or a simple built in parser

There is a newer version: 1.1.55
Show newest version
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