mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
rework some bits of the compiler to work more appropriately
This commit is contained in:
@ -39,7 +39,7 @@ class CompileCommand : CliktCommand("compile") {
|
||||
val compiledSlab = compiler.compilableSlabs.of(slab)
|
||||
val compiledMain = compiledSlab.resolve(Symbol("main"))
|
||||
?: throw RuntimeException("'main' function not found.")
|
||||
val irWorld = compiler.compileIrWorld()
|
||||
val irWorld = compiler.compileIrWorld(compiledMain)
|
||||
val compiledWorld = compiler.compile(compiledMain)
|
||||
if (showIrCode) {
|
||||
printCompiledIr(irWorld)
|
||||
|
@ -16,7 +16,7 @@ class RootCommand : CliktCommand("pork") {
|
||||
AttributeCommand(),
|
||||
ScopeAnalysisCommand(),
|
||||
CopyStdlibCommand(),
|
||||
CompileCommand()
|
||||
CompileCommand(),
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user