commonMain.piacenti.dslmaker.structures.AccumulationParameters.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.abstraction.ProductionStep
/**
* Created by Piacenti on 4/27/2016.
*/
class AccumulationParameters {
val branchedFireParameters = mutableListOf()
val branchedMatchTokens = mutableListOf()
val branchedFullPath = mutableListOf()
val astNodes = mutableListOf()
fun copy(): AccumulationParameters {
val result = AccumulationParameters()
result.branchedFullPath.addAll(branchedFullPath)
result.branchedMatchTokens.addAll(branchedMatchTokens)
result.branchedFireParameters.addAll(branchedFireParameters)
result.astNodes.addAll(astNodes.map { it.copy() })
return result
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy