Home /Examples/lib/examples/sleela/CLI-11-xclass-and-langin.md

CLI-11-xclass-and-langin.md

lib/examples/sleela/CLI-11-xclass-and-langin.md · 23 line(s) · markdown

XClass and JVM-family language input

XClass accepts --run (default), --emit, or --info:

sleela xclass --info path/to/compiled.xclass
sleela xclass --emit path/to/compiled.xclass
sleela xclass --run path/to/compiled.xclass

Langin accepts --run (default), --emit-sleela, --emit-xclass, or --info. --emit is an alias for --emit-sleela.

sleela langin --info path/to/Example.java
sleela langin --emit-sleela path/to/Example.java
sleela langin --emit-xclass path/to/Example.kt
sleela langin --run path/to/Example.scala

The documented JVM-family inputs are Java, Kotlin, Scala, Groovy, and Clojure. Use a valid source file and inspect generated output before executing it.