fix lib and gitignore

This commit is contained in:
Irmen de Jong 2018-09-01 20:30:34 +02:00
parent 640457f35a
commit 6701f2a3a4
11 changed files with 26 additions and 4 deletions

2
.gitignore vendored
View File

@ -19,4 +19,4 @@ parsetab.py
!/il65/lib/*
.pytest_cache/
docs/build
il65/out
out/

9
docs/docs.iml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -4,13 +4,12 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="lib" level="project" />
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
<orderEntry type="library" name="org.hamcrest:hamcrest-library:1.2.1" level="project" />
<orderEntry type="library" name="org.junit.jupiter:junit-jupiter-api:5.2.0" level="project" />
<orderEntry type="library" name="lib1" level="project" />
</component>
</module>

View File

@ -16,6 +16,11 @@ fun main(args: Array<String>) {
// import main module and process additional imports
if(args.size != 1) {
System.err.println("module filename argument missing")
exitProcess(1)
}
val filepath = Paths.get(args[0]).normalize()
val moduleAst = importModule(filepath)
moduleAst.linkParents()

9
python/python.iml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.7 (py3)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>