squiggle/packages/squiggle-lang/src/rescript/Reducer/Reducer.resi

27 lines
963 B
Plaintext
Raw Normal View History

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
@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
let evaluateUsingExternalBindings: (
2022-04-17 17:24:39 +00:00
string,
externalBindings,
) => result<expressionValue, Reducer_ErrorValue.errorValue>
@genType
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>