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

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