Provide dynamic operations currying for Algebra<T> instead of eager calls and add JS code generation support #162

Merged
CommanderTvis merged 44 commits from feature/dynamic-ops-currying into dev 2021-01-05 16:36:51 +03:00
5 changed files with 3 additions and 25 deletions
Showing only changes of commit 12d6422065 - Show all commits

View File

@ -4,6 +4,7 @@ import estree.*
import kscience.kmath.ast.MST
import kscience.kmath.ast.MstExpression
import kscience.kmath.estree.internal.JSBuilder
import kscience.kmath.estree.internal.estree.BaseExpression
import kscience.kmath.expressions.Expression
import kscience.kmath.operations.Algebra
import kscience.kmath.operations.NumericAlgebra

View File

@ -1,18 +1,7 @@
package kscience.kmath.estree.internal
import kscience.kmath.estree.internal.astring.generate
import estree.*
import kscience.kmath.estree.internal.estree.*
import kscience.kmath.estree.internal.estree.BlockStatement
import kscience.kmath.estree.internal.estree.FunctionExpression
import kscience.kmath.estree.internal.estree.Identifier
import kscience.kmath.estree.internal.estree.MemberExpression
import kscience.kmath.estree.internal.estree.Program
import kscience.kmath.estree.internal.estree.ReturnStatement
import kscience.kmath.estree.internal.estree.SimpleCallExpression
import kscience.kmath.estree.internal.estree.SimpleLiteral
import kscience.kmath.estree.internal.estree.VariableDeclaration
import kscience.kmath.estree.internal.estree.VariableDeclarator
import kscience.kmath.expressions.Expression
import kscience.kmath.expressions.Symbol

View File

@ -3,7 +3,7 @@
package kscience.kmath.estree.internal.astring
import estree.BaseNode
import kscience.kmath.estree.internal.estree.BaseNode
internal external interface Options {
var indent: String?

View File

@ -1,17 +1,5 @@
package kscience.kmath.estree.internal.estree
import estree.*
import estree.BlockStatement
import estree.FunctionExpression
import estree.Identifier
import estree.MemberExpression
import estree.Program
import estree.ReturnStatement
import estree.SimpleCallExpression
import estree.SimpleLiteral
import estree.VariableDeclaration
import estree.VariableDeclarator
internal fun Program(sourceType: String, vararg body: dynamic) = object : Program {
override var type = "Program"
override var sourceType = sourceType

View File

@ -1,4 +1,4 @@
package estree
package kscience.kmath.estree.internal.estree
import kotlin.js.RegExp