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

miksilo.modularLanguages.deltas.bytecode.extraBooleanInstructions.ExpandInstruction.scala Maven / Gradle / Ivy

The newest version!
package miksilo.modularLanguages.deltas.bytecode.extraBooleanInstructions

import miksilo.modularLanguages.core.node.Node
import miksilo.modularLanguages.core.deltas.{Contract, Delta, HasShape}
import miksilo.languageServer.core.language.Language
import miksilo.modularLanguages.deltas.bytecode.coreInstructions.InstructionWithGrammar

trait ExpandInstruction extends Delta with InstructionWithGrammar {

  override def dependencies: Set[Contract] = Set(ExpandVirtualInstructionsDelta)

  def expand(instruction: Node, methodInfo: Node, state: Language): Seq[Node]

  override def inject(language: Language): Unit = {
    super.inject(language)
    ExpandVirtualInstructionsDelta.expandInstruction.add(language, this)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy