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