mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
implement native type compilation
This commit is contained in:
@ -69,7 +69,7 @@ class CompileCommand : CliktCommand("compile") {
|
||||
annotation = " ; ${annotations.joinToString(", ") { it.text }}"
|
||||
}
|
||||
print(" ${symbol.offset + index.toUInt()} ${op}${annotation}")
|
||||
if (op.code == Opcode.Constant || op.code == Opcode.Native) {
|
||||
if (op.code == Opcode.Constant || op.code == Opcode.NativeFunction) {
|
||||
val constant = compiledWorld.constantPool.constants[op.args[0].toInt()]
|
||||
val constantString = when (constant.tag) {
|
||||
ConstantTag.String -> "string = \"" + constant.readAsString() + "\""
|
||||
|
Reference in New Issue
Block a user