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": {},
"sources": [
{

View File

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

View File

@ -37,11 +37,11 @@ module Inputs = {
}
type \"export" = [
| #DistPlus(ProbExample.DistPlus.t)
| #DistPlus(SquiggleExperimental.DistPlus.t)
| #Float(float)
| #Function(
(array<string>, ProbExample.ExpressionTypes.ExpressionTree.node),
ProbExample.ExpressionTypes.ExpressionTree.environment,
(array<string>, SquiggleExperimental.ExpressionTypes.ExpressionTree.node),
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
let coersionToExportedTypes = (
inputs,
env: ProbExample.ExpressionTypes.ExpressionTree.environment,
env: SquiggleExperimental.ExpressionTypes.ExpressionTree.environment,
node: ExpressionTypes.ExpressionTree.node,
): result<\"export", string> =>
node

View File

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