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

27 lines
939 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
type expressionValue = ReducerInterface.ExpressionValue.expressionValue
2022-04-15 06:56:48 +00:00
@genType
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-17 17:24:39 +00:00
let evaluateWBindings: (
string,
externalBindings,
) => result<expressionValue, Reducer_ErrorValue.errorValue>
@genType
let evaluatePartialWBindings: (
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>