2020-12-22 13:49:32 +03:00
|
|
|
import ru.mipt.npm.gradle.Maturity
|
|
|
|
|
2020-09-20 12:36:48 +03:00
|
|
|
plugins {
|
2020-09-20 21:59:10 +03:00
|
|
|
id("ru.mipt.npm.mpp")
|
2020-09-20 12:36:48 +03:00
|
|
|
}
|
2020-06-12 10:40:59 +03:00
|
|
|
|
2020-12-20 13:42:57 +03:00
|
|
|
kotlin.js {
|
|
|
|
nodejs {
|
|
|
|
testTask {
|
|
|
|
useMocha().timeout = "0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
browser {
|
|
|
|
testTask {
|
|
|
|
useMocha().timeout = "0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-12 10:40:59 +03:00
|
|
|
kotlin.sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
api(project(":kmath-core"))
|
|
|
|
}
|
|
|
|
}
|
2020-06-13 20:24:10 +03:00
|
|
|
|
2021-01-06 17:01:37 +03:00
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":kmath-complex"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-19 20:40:18 +03:00
|
|
|
jsMain {
|
|
|
|
dependencies {
|
|
|
|
implementation(npm("astring", "1.4.3"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-13 20:24:10 +03:00
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
2020-10-13 13:34:48 +03:00
|
|
|
api("com.github.h0tk3y.betterParse:better-parse:0.4.0")
|
2020-12-22 18:20:30 +03:00
|
|
|
implementation("org.ow2.asm:asm:9.0")
|
|
|
|
implementation("org.ow2.asm:asm-commons:9.0")
|
2020-06-12 16:56:58 +03:00
|
|
|
}
|
|
|
|
}
|
2020-09-08 12:40:47 +03:00
|
|
|
}
|
2020-11-30 11:25:21 +03:00
|
|
|
|
2020-12-22 13:49:32 +03:00
|
|
|
readme {
|
|
|
|
maturity = Maturity.PROTOTYPE
|
2020-12-22 14:02:02 +03:00
|
|
|
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "expression-language",
|
|
|
|
description = "Expression language and its parser",
|
|
|
|
ref = "src/jvmMain/kotlin/kscience/kmath/ast/parser.kt"
|
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst",
|
|
|
|
description = "MST (Mathematical Syntax Tree) as expression language's syntax intermediate representation",
|
|
|
|
ref = "src/commonMain/kotlin/kscience/kmath/ast/MST.kt"
|
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-building",
|
|
|
|
description = "MST building algebraic structure",
|
|
|
|
ref = "src/commonMain/kotlin/kscience/kmath/ast/MstAlgebra.kt"
|
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-interpreter",
|
|
|
|
description = "MST interpreter",
|
|
|
|
ref = "src/commonMain/kotlin/kscience/kmath/ast/MST.kt"
|
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-jvm-codegen",
|
|
|
|
description = "Dynamic MST to JVM bytecode compiler",
|
|
|
|
ref = "src/jvmMain/kotlin/kscience/kmath/asm/asm.kt"
|
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-js-codegen",
|
|
|
|
description = "Dynamic MST to JS compiler",
|
|
|
|
ref = "src/jsMain/kotlin/kscience/kmath/estree/estree.kt"
|
|
|
|
)
|
2020-12-22 13:49:32 +03:00
|
|
|
}
|