mirror of
https://github.com/irmen/prog8.git
synced 2024-09-10 09:54:32 +00:00
remove debug output
This commit is contained in:
parent
d446b57d05
commit
892fa76883
@ -6,11 +6,9 @@ import prog8.ast.Program
|
|||||||
import prog8.ast.base.AstException
|
import prog8.ast.base.AstException
|
||||||
import prog8.ast.expressions.Expression
|
import prog8.ast.expressions.Expression
|
||||||
import prog8.ast.expressions.NumericLiteral
|
import prog8.ast.expressions.NumericLiteral
|
||||||
import prog8.ast.printProgram
|
|
||||||
import prog8.ast.statements.Directive
|
import prog8.ast.statements.Directive
|
||||||
import prog8.code.SymbolTableMaker
|
import prog8.code.SymbolTableMaker
|
||||||
import prog8.code.ast.PtProgram
|
import prog8.code.ast.PtProgram
|
||||||
import prog8.code.ast.printAst
|
|
||||||
import prog8.code.core.*
|
import prog8.code.core.*
|
||||||
import prog8.code.optimize.optimizeIntermediateAst
|
import prog8.code.optimize.optimizeIntermediateAst
|
||||||
import prog8.code.target.*
|
import prog8.code.target.*
|
||||||
@ -123,15 +121,15 @@ fun compileProgram(args: CompilerArguments): CompilationResult? {
|
|||||||
program.processAstBeforeAsmGeneration(compilationOptions, args.errors)
|
program.processAstBeforeAsmGeneration(compilationOptions, args.errors)
|
||||||
args.errors.report()
|
args.errors.report()
|
||||||
|
|
||||||
println("*********** COMPILER AST RIGHT BEFORE ASM GENERATION *************")
|
// println("*********** COMPILER AST RIGHT BEFORE ASM GENERATION *************")
|
||||||
printProgram(program)
|
// printProgram(program)
|
||||||
|
|
||||||
val intermediateAst = IntermediateAstMaker(program, args.errors).transform()
|
val intermediateAst = IntermediateAstMaker(program, args.errors).transform()
|
||||||
optimizeIntermediateAst(intermediateAst, compilationOptions, args.errors)
|
optimizeIntermediateAst(intermediateAst, compilationOptions, args.errors)
|
||||||
args.errors.report()
|
args.errors.report()
|
||||||
|
|
||||||
println("*********** AST RIGHT BEFORE ASM GENERATION *************")
|
// println("*********** AST RIGHT BEFORE ASM GENERATION *************")
|
||||||
printAst(intermediateAst, true, ::println)
|
// printAst(intermediateAst, true, ::println)
|
||||||
|
|
||||||
if(!createAssemblyAndAssemble(intermediateAst, args.errors, compilationOptions)) {
|
if(!createAssemblyAndAssemble(intermediateAst, args.errors, compilationOptions)) {
|
||||||
System.err.println("Error in codegeneration or assembler")
|
System.err.println("Error in codegeneration or assembler")
|
||||||
|
Loading…
Reference in New Issue
Block a user