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

commonMain.piacenti.dslmaker.structures.FireParameters.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.structures

import piacenti.dslmaker.structures.derivationgraph.DerivationNode

/**
 * Created by Piacenti on 10/14/2015.
 */
class FireParameters(val node: DerivationNode, val startIndex: Int, val endIndex: Int,
                     stack: StepStack = StepStack(), matchedTokens: Collection) {
    val matchTokens: MutableList = mutableListOf()
    var astNode: ASTNode? = null
    val stack:StepStack = StepStack().addAll(stack.getAsList())

    init {
        this.matchTokens.addAll(matchedTokens)
    }

    override fun toString(): String {
        return "FireParameters{" +
                "node=" + node +
                ", startIndex=" + startIndex +
                ", endIndex=" + endIndex +
                ", stack=" + stack +
                '}'.toString()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy