mirror of
https://github.com/irmen/prog8.git
synced 2024-09-09 02:54:28 +00:00
codegen package rename
This commit is contained in:
parent
7b54aa0c7d
commit
b799f2e05b
@ -1,3 +1,3 @@
|
|||||||
package prog8.compiler.target
|
package prog8.codegen.target
|
||||||
|
|
||||||
class AssemblyError(msg: String) : RuntimeException(msg)
|
class AssemblyError(msg: String) : RuntimeException(msg)
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
package prog8.compiler.target
|
package prog8.codegen.target
|
||||||
|
|
||||||
import com.github.michaelbull.result.fold
|
import com.github.michaelbull.result.fold
|
||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
import prog8.ast.expressions.Expression
|
import prog8.ast.expressions.Expression
|
||||||
import prog8.ast.statements.RegisterOrStatusflag
|
import prog8.ast.statements.RegisterOrStatusflag
|
||||||
import prog8.ast.statements.Subroutine
|
import prog8.ast.statements.Subroutine
|
||||||
import prog8.compiler.target.c64.C64MachineDefinition
|
import prog8.codegen.target.c64.C64MachineDefinition
|
||||||
import prog8.compiler.target.cbm.Petscii
|
import prog8.codegen.target.cbm.Petscii
|
||||||
import prog8.compiler.target.cpu6502.codegen.asmsub6502ArgsEvalOrder
|
import prog8.codegen.target.cpu6502.codegen.asmsub6502ArgsEvalOrder
|
||||||
import prog8.compiler.target.cpu6502.codegen.asmsub6502ArgsHaveRegisterClobberRisk
|
import prog8.codegen.target.cpu6502.codegen.asmsub6502ArgsHaveRegisterClobberRisk
|
||||||
import prog8.compilerinterface.ICompilationTarget
|
import prog8.compilerinterface.ICompilationTarget
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target
|
package prog8.codegen.target
|
||||||
|
|
||||||
import com.github.michaelbull.result.fold
|
import com.github.michaelbull.result.fold
|
||||||
import prog8.ast.base.ByteDatatypes
|
import prog8.ast.base.ByteDatatypes
|
||||||
@ -8,10 +8,10 @@ import prog8.ast.base.WordDatatypes
|
|||||||
import prog8.ast.expressions.Expression
|
import prog8.ast.expressions.Expression
|
||||||
import prog8.ast.statements.RegisterOrStatusflag
|
import prog8.ast.statements.RegisterOrStatusflag
|
||||||
import prog8.ast.statements.Subroutine
|
import prog8.ast.statements.Subroutine
|
||||||
import prog8.compiler.target.cbm.Petscii
|
import prog8.codegen.target.cbm.Petscii
|
||||||
import prog8.compiler.target.cpu6502.codegen.asmsub6502ArgsEvalOrder
|
import prog8.codegen.target.cpu6502.codegen.asmsub6502ArgsEvalOrder
|
||||||
import prog8.compiler.target.cpu6502.codegen.asmsub6502ArgsHaveRegisterClobberRisk
|
import prog8.codegen.target.cpu6502.codegen.asmsub6502ArgsHaveRegisterClobberRisk
|
||||||
import prog8.compiler.target.cx16.CX16MachineDefinition
|
import prog8.codegen.target.cx16.CX16MachineDefinition
|
||||||
import prog8.compilerinterface.ICompilationTarget
|
import prog8.compilerinterface.ICompilationTarget
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package prog8.compiler.target.c64
|
package prog8.codegen.target.c64
|
||||||
|
|
||||||
import prog8.ast.base.DataType
|
import prog8.ast.base.DataType
|
||||||
import prog8.compiler.target.cbm.Mflpt5
|
import prog8.codegen.target.cbm.Mflpt5
|
||||||
import prog8.compiler.target.cbm.viceMonListPostfix
|
import prog8.codegen.target.cbm.viceMonListPostfix
|
||||||
import prog8.compilerinterface.*
|
import prog8.compilerinterface.*
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.c64
|
package prog8.codegen.target.c64
|
||||||
|
|
||||||
import prog8.compilerinterface.CompilationOptions
|
import prog8.compilerinterface.CompilationOptions
|
||||||
import prog8.compilerinterface.InternalCompilerException
|
import prog8.compilerinterface.InternalCompilerException
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cbm
|
package prog8.codegen.target.cbm
|
||||||
|
|
||||||
import com.github.michaelbull.result.Ok
|
import com.github.michaelbull.result.Ok
|
||||||
import com.github.michaelbull.result.Result
|
import com.github.michaelbull.result.Result
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cbm
|
package prog8.codegen.target.cbm
|
||||||
|
|
||||||
import prog8.compilerinterface.IMachineFloat
|
import prog8.compilerinterface.IMachineFloat
|
||||||
import prog8.compilerinterface.InternalCompilerException
|
import prog8.compilerinterface.InternalCompilerException
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cbm
|
package prog8.codegen.target.cbm
|
||||||
|
|
||||||
import com.github.michaelbull.result.Err
|
import com.github.michaelbull.result.Err
|
||||||
import com.github.michaelbull.result.Ok
|
import com.github.michaelbull.result.Ok
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import com.github.michaelbull.result.fold
|
import com.github.michaelbull.result.fold
|
||||||
import prog8.ast.*
|
import prog8.ast.*
|
||||||
@ -6,17 +6,17 @@ import prog8.ast.antlr.escape
|
|||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
import prog8.ast.expressions.*
|
import prog8.ast.expressions.*
|
||||||
import prog8.ast.statements.*
|
import prog8.ast.statements.*
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compiler.target.C64Target
|
import prog8.codegen.target.C64Target
|
||||||
import prog8.compiler.target.Cx16Target
|
import prog8.codegen.target.Cx16Target
|
||||||
import prog8.compiler.target.cbm.AssemblyProgram
|
import prog8.codegen.target.cbm.AssemblyProgram
|
||||||
import prog8.compiler.target.cbm.loadAsmIncludeFile
|
import prog8.codegen.target.cbm.loadAsmIncludeFile
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.AsmAssignSource
|
import prog8.codegen.target.cpu6502.codegen.assignment.AsmAssignSource
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.AsmAssignTarget
|
import prog8.codegen.target.cpu6502.codegen.assignment.AsmAssignTarget
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.AsmAssignment
|
import prog8.codegen.target.cpu6502.codegen.assignment.AsmAssignment
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.AssignmentAsmGen
|
import prog8.codegen.target.cpu6502.codegen.assignment.AssignmentAsmGen
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.SourceStorageKind
|
import prog8.codegen.target.cpu6502.codegen.assignment.SourceStorageKind
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.TargetStorageKind
|
import prog8.codegen.target.cpu6502.codegen.assignment.TargetStorageKind
|
||||||
import prog8.compilerinterface.*
|
import prog8.compilerinterface.*
|
||||||
import prog8.parser.SourceCode
|
import prog8.parser.SourceCode
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import prog8.ast.Program
|
import prog8.ast.Program
|
||||||
import prog8.ast.base.VarDeclType
|
import prog8.ast.base.VarDeclType
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import prog8.ast.base.Cx16VirtualRegisters
|
import prog8.ast.base.Cx16VirtualRegisters
|
||||||
import prog8.ast.base.RegisterOrPair
|
import prog8.ast.base.RegisterOrPair
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import prog8.ast.IFunctionCall
|
import prog8.ast.IFunctionCall
|
||||||
import prog8.ast.Node
|
import prog8.ast.Node
|
||||||
@ -10,9 +10,9 @@ import prog8.ast.statements.DirectMemoryWrite
|
|||||||
import prog8.ast.statements.FunctionCallStatement
|
import prog8.ast.statements.FunctionCallStatement
|
||||||
import prog8.ast.statements.Subroutine
|
import prog8.ast.statements.Subroutine
|
||||||
import prog8.ast.toHex
|
import prog8.ast.toHex
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compiler.target.Cx16Target
|
import prog8.codegen.target.Cx16Target
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.*
|
import prog8.codegen.target.cpu6502.codegen.assignment.*
|
||||||
import prog8.compilerinterface.CpuType
|
import prog8.compilerinterface.CpuType
|
||||||
import prog8.compilerinterface.FSignature
|
import prog8.compilerinterface.FSignature
|
||||||
import prog8.compilerinterface.subroutineFloatEvalResultVar2
|
import prog8.compilerinterface.subroutineFloatEvalResultVar2
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import prog8.ast.Program
|
import prog8.ast.Program
|
||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
@ -6,7 +6,7 @@ import prog8.ast.expressions.*
|
|||||||
import prog8.ast.statements.BuiltinFunctionPlaceholder
|
import prog8.ast.statements.BuiltinFunctionPlaceholder
|
||||||
import prog8.ast.statements.Subroutine
|
import prog8.ast.statements.Subroutine
|
||||||
import prog8.ast.toHex
|
import prog8.ast.toHex
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compilerinterface.BuiltinFunctions
|
import prog8.compilerinterface.BuiltinFunctions
|
||||||
import prog8.compilerinterface.CpuType
|
import prog8.compilerinterface.CpuType
|
||||||
import kotlin.math.absoluteValue
|
import kotlin.math.absoluteValue
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import prog8.ast.Program
|
import prog8.ast.Program
|
||||||
import prog8.ast.base.ArrayToElementTypes
|
import prog8.ast.base.ArrayToElementTypes
|
||||||
@ -8,7 +8,7 @@ import prog8.ast.expressions.IdentifierReference
|
|||||||
import prog8.ast.expressions.RangeExpr
|
import prog8.ast.expressions.RangeExpr
|
||||||
import prog8.ast.statements.ForLoop
|
import prog8.ast.statements.ForLoop
|
||||||
import prog8.ast.toHex
|
import prog8.ast.toHex
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compilerinterface.toConstantIntegerRange
|
import prog8.compilerinterface.toConstantIntegerRange
|
||||||
import kotlin.math.absoluteValue
|
import kotlin.math.absoluteValue
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import prog8.ast.IFunctionCall
|
import prog8.ast.IFunctionCall
|
||||||
import prog8.ast.Node
|
import prog8.ast.Node
|
||||||
@ -6,11 +6,11 @@ import prog8.ast.Program
|
|||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
import prog8.ast.expressions.*
|
import prog8.ast.expressions.*
|
||||||
import prog8.ast.statements.*
|
import prog8.ast.statements.*
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.AsmAssignSource
|
import prog8.codegen.target.cpu6502.codegen.assignment.AsmAssignSource
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.AsmAssignTarget
|
import prog8.codegen.target.cpu6502.codegen.assignment.AsmAssignTarget
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.AsmAssignment
|
import prog8.codegen.target.cpu6502.codegen.assignment.AsmAssignment
|
||||||
import prog8.compiler.target.cpu6502.codegen.assignment.TargetStorageKind
|
import prog8.codegen.target.cpu6502.codegen.assignment.TargetStorageKind
|
||||||
import prog8.compilerinterface.CpuType
|
import prog8.compilerinterface.CpuType
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen
|
package prog8.codegen.target.cpu6502.codegen
|
||||||
|
|
||||||
import prog8.ast.Program
|
import prog8.ast.Program
|
||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
@ -6,7 +6,7 @@ import prog8.ast.expressions.IdentifierReference
|
|||||||
import prog8.ast.expressions.NumericLiteralValue
|
import prog8.ast.expressions.NumericLiteralValue
|
||||||
import prog8.ast.statements.PostIncrDecr
|
import prog8.ast.statements.PostIncrDecr
|
||||||
import prog8.ast.toHex
|
import prog8.ast.toHex
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
|
|
||||||
|
|
||||||
internal class PostIncrDecrAsmGen(private val program: Program, private val asmgen: AsmGen) {
|
internal class PostIncrDecrAsmGen(private val program: Program, private val asmgen: AsmGen) {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen.assignment
|
package prog8.codegen.target.cpu6502.codegen.assignment
|
||||||
|
|
||||||
import prog8.ast.Program
|
import prog8.ast.Program
|
||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
import prog8.ast.expressions.*
|
import prog8.ast.expressions.*
|
||||||
import prog8.ast.statements.*
|
import prog8.ast.statements.*
|
||||||
import prog8.compilerinterface.IMemSizer
|
import prog8.compilerinterface.IMemSizer
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compiler.target.cpu6502.codegen.AsmGen
|
import prog8.codegen.target.cpu6502.codegen.AsmGen
|
||||||
|
|
||||||
|
|
||||||
internal enum class TargetStorageKind {
|
internal enum class TargetStorageKind {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen.assignment
|
package prog8.codegen.target.cpu6502.codegen.assignment
|
||||||
|
|
||||||
import prog8.ast.Program
|
import prog8.ast.Program
|
||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
import prog8.ast.expressions.*
|
import prog8.ast.expressions.*
|
||||||
import prog8.ast.statements.*
|
import prog8.ast.statements.*
|
||||||
import prog8.ast.toHex
|
import prog8.ast.toHex
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compiler.target.cpu6502.codegen.AsmGen
|
import prog8.codegen.target.cpu6502.codegen.AsmGen
|
||||||
import prog8.compilerinterface.BuiltinFunctions
|
import prog8.compilerinterface.BuiltinFunctions
|
||||||
import prog8.compilerinterface.CpuType
|
import prog8.compilerinterface.CpuType
|
||||||
import prog8.compilerinterface.builtinFunctionReturnType
|
import prog8.compilerinterface.builtinFunctionReturnType
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package prog8.compiler.target.cpu6502.codegen.assignment
|
package prog8.codegen.target.cpu6502.codegen.assignment
|
||||||
|
|
||||||
import prog8.ast.Program
|
import prog8.ast.Program
|
||||||
import prog8.ast.base.*
|
import prog8.ast.base.*
|
||||||
import prog8.ast.expressions.*
|
import prog8.ast.expressions.*
|
||||||
import prog8.ast.statements.Subroutine
|
import prog8.ast.statements.Subroutine
|
||||||
import prog8.ast.toHex
|
import prog8.ast.toHex
|
||||||
import prog8.compiler.target.AssemblyError
|
import prog8.codegen.target.AssemblyError
|
||||||
import prog8.compiler.target.cpu6502.codegen.AsmGen
|
import prog8.codegen.target.cpu6502.codegen.AsmGen
|
||||||
import prog8.compilerinterface.CpuType
|
import prog8.compilerinterface.CpuType
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package prog8.compiler.target.cx16
|
package prog8.codegen.target.cx16
|
||||||
|
|
||||||
import prog8.ast.base.DataType
|
import prog8.ast.base.DataType
|
||||||
import prog8.compiler.target.cbm.Mflpt5
|
import prog8.codegen.target.cbm.Mflpt5
|
||||||
import prog8.compiler.target.cbm.viceMonListPostfix
|
import prog8.codegen.target.cbm.viceMonListPostfix
|
||||||
import prog8.compilerinterface.*
|
import prog8.compilerinterface.*
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package prog8.compiler.target.cx16
|
package prog8.codegen.target.cx16
|
||||||
|
|
||||||
import prog8.compilerinterface.CompilationOptions
|
import prog8.compilerinterface.CompilationOptions
|
||||||
import prog8.compilerinterface.InternalCompilerException
|
import prog8.compilerinterface.InternalCompilerException
|
||||||
|
Loading…
Reference in New Issue
Block a user