mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
moved prog8lib into compiler directory
This commit is contained in:
parent
b8b531276d
commit
d5250a97c2
@ -1,4 +1,4 @@
|
|||||||
set PROG8_LIBDIR=../prog8lib
|
rem set PROG8_LIBDIR=../prog8lib
|
||||||
set PROG8CLASSPATH=out/production/compiler/
|
set PROG8CLASSPATH=out/production/compiler/
|
||||||
set KOTLINPATH=%USERPROFILE%/.IdeaIC2018.3/config/plugins/Kotlin
|
set KOTLINPATH=%USERPROFILE%/.IdeaIC2018.3/config/plugins/Kotlin
|
||||||
set LIBJARS=%KOTLINPATH%/lib/kotlin-stdlib.jar;%KOTLINPATH%/lib/kotlin-reflect.jar;antlr/lib/antlr-runtime-4.7.2.jar
|
set LIBJARS=%KOTLINPATH%/lib/kotlin-stdlib.jar;%KOTLINPATH%/lib/kotlin-reflect.jar;antlr/lib/antlr-runtime-4.7.2.jar
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
PROG8_LIBDIR=../prog8lib
|
# PROG8_LIBDIR=../prog8lib
|
||||||
PROG8CLASSPATH=out/production/compiler
|
PROG8CLASSPATH=out/production/compiler
|
||||||
KOTLINPATH=${HOME}/.IntelliJIdea2018.3/config/plugins/Kotlin
|
KOTLINPATH=${HOME}/.IntelliJIdea2018.3/config/plugins/Kotlin
|
||||||
LIBJARS=${KOTLINPATH}/lib/kotlin-stdlib.jar:${KOTLINPATH}/lib/kotlin-reflect.jar:antlr/lib/antlr-runtime-4.7.2.jar
|
LIBJARS=${KOTLINPATH}/lib/kotlin-stdlib.jar:${KOTLINPATH}/lib/kotlin-reflect.jar:antlr/lib/antlr-runtime-4.7.2.jar
|
||||||
|
@ -23,8 +23,13 @@ private class LexerErrorListener: BaseErrorListener() {
|
|||||||
|
|
||||||
fun importModule(filePath: Path) : Module {
|
fun importModule(filePath: Path) : Module {
|
||||||
print("importing '${filePath.fileName}'")
|
print("importing '${filePath.fileName}'")
|
||||||
if(filePath.parent!=null)
|
if(filePath.parent!=null) {
|
||||||
println(" (from '${filePath.parent}')")
|
var importloc = filePath.toString()
|
||||||
|
val curdir = Paths.get("").toAbsolutePath().toString()
|
||||||
|
if(importloc.startsWith(curdir))
|
||||||
|
importloc = "." + importloc.substring(curdir.length)
|
||||||
|
println(" (from '$importloc')")
|
||||||
|
}
|
||||||
else
|
else
|
||||||
println("")
|
println("")
|
||||||
if(!Files.isReadable(filePath))
|
if(!Files.isReadable(filePath))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user