* move ModuleImporter to prog8.compiler (package & module), together with its tests

This commit is contained in:
meisl 2021-08-02 09:15:11 +02:00
parent fb67d1155f
commit ac02a99934
7 changed files with 6 additions and 3 deletions

View File

@ -16,7 +16,6 @@ import prog8.compiler.target.Cx16Target
import prog8.compiler.target.ICompilationTarget import prog8.compiler.target.ICompilationTarget
import prog8.compiler.target.asmGeneratorFor import prog8.compiler.target.asmGeneratorFor
import prog8.optimizer.* import prog8.optimizer.*
import prog8.parser.ModuleImporter
import prog8.parser.ParsingFailedError import prog8.parser.ParsingFailedError
import java.io.File import java.io.File
import java.io.InputStream import java.io.InputStream

View File

@ -1,4 +1,4 @@
package prog8.parser package prog8.compiler
import prog8.ast.Module import prog8.ast.Module
import prog8.ast.Program import prog8.ast.Program
@ -6,6 +6,8 @@ import prog8.ast.base.Position
import prog8.ast.base.SyntaxError import prog8.ast.base.SyntaxError
import prog8.ast.statements.Directive import prog8.ast.statements.Directive
import prog8.ast.statements.DirectiveArg import prog8.ast.statements.DirectiveArg
import prog8.parser.Prog8Parser
import prog8.parser.SourceCode
import java.io.File import java.io.File
import java.nio.file.Path import java.nio.file.Path
import kotlin.io.FileSystemException import kotlin.io.FileSystemException

View File

@ -15,7 +15,7 @@ import kotlin.io.path.*
import prog8.ast.Program import prog8.ast.Program
import prog8.parser.ParseError import prog8.parser.ParseError
import prog8.parser.ModuleImporter import prog8.compiler.ModuleImporter
import kotlin.test.assertContains import kotlin.test.assertContains

View File

@ -0,0 +1,2 @@
; test expects the following 2nd (!) line:
bad { } ; -> missing EOL at '}' (ie: *after* the '{')