Renamed squiggle library to SquiggleExperimental

This commit is contained in:
Ozzie Gooen 2022-02-06 16:15:59 -05:00
parent d3e50ad896
commit 748896fce1
4 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "squiggle-experimental", "name": "SquiggleExperimental",
"reason": {}, "reason": {},
"sources": [ "sources": [
{ {

View File

@ -1,6 +1,6 @@
{ {
"name": "squiggle-experimental", "name": "squiggle-experimental",
"version": "0.1.6", "version": "0.1.8",
"homepage": "https://foretold-app.github.io/estiband/", "homepage": "https://foretold-app.github.io/estiband/",
"private": false, "private": false,
"scripts": { "scripts": {

View File

@ -37,11 +37,11 @@ module Inputs = {
} }
type \"export" = [ type \"export" = [
| #DistPlus(ProbExample.DistPlus.t) | #DistPlus(SquiggleExperimental.DistPlus.t)
| #Float(float) | #Float(float)
| #Function( | #Function(
(array<string>, ProbExample.ExpressionTypes.ExpressionTree.node), (array<string>, SquiggleExperimental.ExpressionTypes.ExpressionTree.node),
ProbExample.ExpressionTypes.ExpressionTree.environment, SquiggleExperimental.ExpressionTypes.ExpressionTree.environment,
) )
] ]
@ -124,7 +124,7 @@ let renderIfNeeded = (inputs: Inputs.inputs, node: ExpressionTypes.ExpressionTre
// TODO: Consider using ExpressionTypes.ExpressionTree.getFloat or similar in this function // TODO: Consider using ExpressionTypes.ExpressionTree.getFloat or similar in this function
let coersionToExportedTypes = ( let coersionToExportedTypes = (
inputs, inputs,
env: ProbExample.ExpressionTypes.ExpressionTree.environment, env: SquiggleExperimental.ExpressionTypes.ExpressionTree.environment,
node: ExpressionTypes.ExpressionTree.node, node: ExpressionTypes.ExpressionTree.node,
): result<\"export", string> => ): result<\"export", string> =>
node node

View File

@ -203,7 +203,7 @@ module MathAdtToDistDst = {
nodeParser: nodeParser:
MathJsonToMathJsAdt.arg => MathJsonToMathJsAdt.arg =>
Belt.Result.t( Belt.Result.t(
Squiggle-Website.ExpressionTypes.ExpressionTree.node, SquiggleExperimental.ExpressionTypes.ExpressionTree.node,
string, string,
), ),
name: string, name: string,
@ -344,6 +344,7 @@ let fromString2 = str => {
}); });
let value = E.R.bind(mathJsParse, MathAdtToDistDst.run); let value = E.R.bind(mathJsParse, MathAdtToDistDst.run);
Js.log2(mathJsParse, value);
value; value;
}; };