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
Showing only changes of commit d657f40e3f - Show all commits

View File

@ -62,7 +62,7 @@ internal fun <T> MST.compileWith(algebra: Algebra<T>): Expression<T> {
/** /**
* Compiles an [MST] to ASM using given algebra. * Compiles an [MST] to ESTree generated expression using given algebra.
* *
* @author Alexander Nozik. * @author Alexander Nozik.
*/ */
@ -70,7 +70,7 @@ public fun <T : Any> Algebra<T>.expression(mst: MST): Expression<T> =
mst.compileWith(this) mst.compileWith(this)
/** /**
* Optimizes performance of an [MstExpression] using ASM codegen. * Optimizes performance of an [MstExpression] by compiling it into ESTree generated expression.
* *
* @author Alexander Nozik. * @author Alexander Nozik.
*/ */