2022-03-29 09:09:59 +00:00
|
|
|
module Dispatch = Reducer_Dispatch
|
|
|
|
module ErrorValue = Reducer_ErrorValue
|
|
|
|
module Expression = Reducer_Expression
|
|
|
|
module Extra = Reducer_Extra
|
|
|
|
module Js = Reducer_Js
|
|
|
|
module MathJs = Reducer_MathJs
|
2022-04-11 01:18:38 +00:00
|
|
|
|
|
|
|
@genType
|
2022-04-22 14:48:34 +00:00
|
|
|
type expressionValue = ReducerInterface_ExpressionValue.expressionValue
|
2022-04-15 06:56:48 +00:00
|
|
|
@genType
|
2022-04-22 14:48:34 +00:00
|
|
|
type externalBindings = ReducerInterface_ExpressionValue.externalBindings
|
2022-04-11 03:16:31 +00:00
|
|
|
@genType
|
|
|
|
let evaluate: string => result<expressionValue, Reducer_ErrorValue.errorValue>
|
2022-04-15 06:56:48 +00:00
|
|
|
@genType
|
2022-04-22 20:15:06 +00:00
|
|
|
let evaluateUsingExternalBindings: (
|
2022-04-17 17:24:39 +00:00
|
|
|
string,
|
|
|
|
externalBindings,
|
|
|
|
) => result<expressionValue, Reducer_ErrorValue.errorValue>
|
|
|
|
@genType
|
2022-04-22 20:19:59 +00:00
|
|
|
let evaluatePartialUsingExternalBindings: (
|
2022-04-17 17:24:39 +00:00
|
|
|
string,
|
|
|
|
externalBindings,
|
|
|
|
) => result<externalBindings, Reducer_ErrorValue.errorValue>
|
2022-03-29 09:09:59 +00:00
|
|
|
let parse: string => result<Expression.expression, ErrorValue.errorValue>
|
2022-04-17 17:47:05 +00:00
|
|
|
let parseOuter: string => result<Expression.expression, ErrorValue.errorValue>
|
|
|
|
let parsePartial: string => result<Expression.expression, ErrorValue.errorValue>
|