demolish FFI
This commit is contained in:
parent
af4070a34f
commit
e9c55fe802
|
@ -177,16 +177,23 @@ let evaluate = (sourceCode: string): ('r, 'b) => Private.evaluate(sourceCode)
|
||||||
let setEnvironment = (project: reducerProject, environment: environment): unit =>
|
let setEnvironment = (project: reducerProject, environment: environment): unit =>
|
||||||
project->T.Private.castToInternalProject->Private.setEnvironment(environment)
|
project->T.Private.castToInternalProject->Private.setEnvironment(environment)
|
||||||
|
|
||||||
let foreignFunctionInterface = (
|
/*
|
||||||
lambdaValue: squiggleValue_Lambda,
|
Foreign function interface is intentionally demolished.
|
||||||
argArray: array<squiggleValue>,
|
There is another way to do that: Umur.
|
||||||
environment: environment,
|
Also there is no more conversion from javascript to squiggle values currently.
|
||||||
): result_<squiggleValue, reducerErrorValue> => {
|
If the conversion to the new project is too difficult, I can add it later.
|
||||||
let accessors = ReducerProject_ProjectAccessors_T.identityAccessorsWithEnvironment(environment)
|
*/
|
||||||
Reducer_Expression_Lambda.foreignFunctionInterface(
|
|
||||||
lambdaValue,
|
// let foreignFunctionInterface = (
|
||||||
argArray,
|
// lambdaValue: squiggleValue_Lambda,
|
||||||
accessors,
|
// argArray: array<squiggleValue>,
|
||||||
Reducer_Expression.reduceExpressionInProject,
|
// environment: environment,
|
||||||
)
|
// ): result_<squiggleValue, reducerErrorValue> => {
|
||||||
}
|
// let accessors = ReducerProject_ProjectAccessors_T.identityAccessorsWithEnvironment(environment)
|
||||||
|
// Reducer_Expression_Lambda.foreignFunctionInterface(
|
||||||
|
// lambdaValue,
|
||||||
|
// argArray,
|
||||||
|
// accessors,
|
||||||
|
// Reducer_Expression.reduceExpressionInProject,
|
||||||
|
// )
|
||||||
|
// }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user