Provide dynamic operations currying for Algebra<T> instead of eager calls and add JS code generation support #162
@ -4,6 +4,7 @@ import estree.*
|
|||||||
import kscience.kmath.ast.MST
|
import kscience.kmath.ast.MST
|
||||||
import kscience.kmath.ast.MstExpression
|
import kscience.kmath.ast.MstExpression
|
||||||
import kscience.kmath.estree.internal.JSBuilder
|
import kscience.kmath.estree.internal.JSBuilder
|
||||||
|
import kscience.kmath.estree.internal.estree.BaseExpression
|
||||||
import kscience.kmath.expressions.Expression
|
import kscience.kmath.expressions.Expression
|
||||||
import kscience.kmath.operations.Algebra
|
import kscience.kmath.operations.Algebra
|
||||||
import kscience.kmath.operations.NumericAlgebra
|
import kscience.kmath.operations.NumericAlgebra
|
||||||
|
@ -1,18 +1,7 @@
|
|||||||
package kscience.kmath.estree.internal
|
package kscience.kmath.estree.internal
|
||||||
|
|
||||||
import kscience.kmath.estree.internal.astring.generate
|
import kscience.kmath.estree.internal.astring.generate
|
||||||
import estree.*
|
|
||||||
import kscience.kmath.estree.internal.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.Expression
|
||||||
import kscience.kmath.expressions.Symbol
|
import kscience.kmath.expressions.Symbol
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
package kscience.kmath.estree.internal.astring
|
package kscience.kmath.estree.internal.astring
|
||||||
|
|
||||||
import estree.BaseNode
|
import kscience.kmath.estree.internal.estree.BaseNode
|
||||||
|
|
||||||
internal external interface Options {
|
internal external interface Options {
|
||||||
var indent: String?
|
var indent: String?
|
||||||
|
@ -1,17 +1,5 @@
|
|||||||
package kscience.kmath.estree.internal.estree
|
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 {
|
internal fun Program(sourceType: String, vararg body: dynamic) = object : Program {
|
||||||
override var type = "Program"
|
override var type = "Program"
|
||||||
override var sourceType = sourceType
|
override var sourceType = sourceType
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package estree
|
package kscience.kmath.estree.internal.estree
|
||||||
|
|
||||||
import kotlin.js.RegExp
|
import kotlin.js.RegExp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user