sigma.RuntimePlatform.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sigma-state_2.12 Show documentation
Show all versions of sigma-state_2.12 Show documentation
Interpreter of a Sigma-State language
The newest version!
package sigma
/** Descriptor of a runtime platform. Can be used to conditionally execute code. */
sealed trait RuntimePlatform {
/** Platform code (unique for each platform) */
def code: Int
}
object RuntimePlatform {
/** Represent JVM platform. */
case object JVM extends RuntimePlatform {
val code = 1
}
/** Represent JS platform. */
case object JS extends RuntimePlatform {
val code = 2
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy