mirror of
https://github.com/irmen/prog8.git
synced 2024-11-22 15:33:02 +00:00
* move ModuleImporter to prog8.compiler (package & module), together with its tests
This commit is contained in:
parent
fb67d1155f
commit
ac02a99934
@ -16,7 +16,6 @@ import prog8.compiler.target.Cx16Target
|
||||
import prog8.compiler.target.ICompilationTarget
|
||||
import prog8.compiler.target.asmGeneratorFor
|
||||
import prog8.optimizer.*
|
||||
import prog8.parser.ModuleImporter
|
||||
import prog8.parser.ParsingFailedError
|
||||
import java.io.File
|
||||
import java.io.InputStream
|
||||
|
@ -1,4 +1,4 @@
|
||||
package prog8.parser
|
||||
package prog8.compiler
|
||||
|
||||
import prog8.ast.Module
|
||||
import prog8.ast.Program
|
||||
@ -6,6 +6,8 @@ import prog8.ast.base.Position
|
||||
import prog8.ast.base.SyntaxError
|
||||
import prog8.ast.statements.Directive
|
||||
import prog8.ast.statements.DirectiveArg
|
||||
import prog8.parser.Prog8Parser
|
||||
import prog8.parser.SourceCode
|
||||
import java.io.File
|
||||
import java.nio.file.Path
|
||||
import kotlin.io.FileSystemException
|
@ -15,7 +15,7 @@ import kotlin.io.path.*
|
||||
import prog8.ast.Program
|
||||
import prog8.parser.ParseError
|
||||
|
||||
import prog8.parser.ModuleImporter
|
||||
import prog8.compiler.ModuleImporter
|
||||
import kotlin.test.assertContains
|
||||
|
||||
|
2
compiler/test/fixtures/file_with_syntax_error.p8
vendored
Normal file
2
compiler/test/fixtures/file_with_syntax_error.p8
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
; test expects the following 2nd (!) line:
|
||||
bad { } ; -> missing EOL at '}' (ie: *after* the '{')
|
Loading…
Reference in New Issue
Block a user