PR#333
This commit is contained in:
parent
c79685699e
commit
b683e720f1
|
@ -10,7 +10,7 @@ describe("Parse for Bindings", () => {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("Parse for Bindings", () => {
|
describe("Parse Partial", () => {
|
||||||
testParsePartialToBe(
|
testParsePartialToBe(
|
||||||
"x",
|
"x",
|
||||||
"Ok((:$$bindExpression (:$$bindStatement (:$$bindings) :x) (:$exportVariablesExpression)))",
|
"Ok((:$$bindExpression (:$$bindStatement (:$$bindings) :x) (:$exportVariablesExpression)))",
|
||||||
|
|
|
@ -122,7 +122,7 @@ let evalWBindingsExpression_ = (aExpression, bindings): result<expressionValue,
|
||||||
/*
|
/*
|
||||||
Evaluates MathJs code via Reducer using bindings and answers the result.
|
Evaluates MathJs code via Reducer using bindings and answers the result.
|
||||||
When bindings are used, the code is a partial code as if it is cut from a larger code.
|
When bindings are used, the code is a partial code as if it is cut from a larger code.
|
||||||
Therefore all statments are assignments.
|
Therefore all statements are assignments.
|
||||||
*/
|
*/
|
||||||
let evalPartialWBindings_ = (codeText: string, bindings: T.bindings) => {
|
let evalPartialWBindings_ = (codeText: string, bindings: T.bindings) => {
|
||||||
parsePartial(codeText)->Result.flatMap(expression =>
|
parsePartial(codeText)->Result.flatMap(expression =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user