---
source: kcl/src/simulation_tests.rs
description: Result of parsing parametric_with_tan_arc.kcl
---
{
  "Ok": {
    "body": [
      {
        "declaration": {
          "end": 18,
          "id": {
            "end": 10,
            "name": "sigmaAllow",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "end": 18,
            "raw": "15000",
            "start": 13,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 15000.0,
              "suffix": "None"
            }
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 18,
        "kind": "const",
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 36,
          "id": {
            "end": 31,
            "name": "width",
            "start": 26,
            "type": "Identifier"
          },
          "init": {
            "end": 36,
            "raw": "11",
            "start": 34,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 11.0,
              "suffix": "None"
            }
          },
          "start": 26,
          "type": "VariableDeclarator"
        },
        "end": 36,
        "kind": "const",
        "start": 26,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 52,
          "id": {
            "end": 46,
            "name": "p",
            "start": 45,
            "type": "Identifier"
          },
          "init": {
            "end": 52,
            "raw": "150",
            "start": 49,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 150.0,
              "suffix": "None"
            }
          },
          "start": 45,
          "type": "VariableDeclarator"
        },
        "end": 52,
        "kind": "const",
        "start": 45,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 90,
          "id": {
            "end": 85,
            "name": "distance",
            "start": 77,
            "type": "Identifier"
          },
          "init": {
            "end": 90,
            "raw": "12",
            "start": 88,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 12.0,
              "suffix": "None"
            }
          },
          "start": 77,
          "type": "VariableDeclarator"
        },
        "end": 90,
        "kind": "const",
        "start": 77,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 108,
          "id": {
            "end": 104,
            "name": "FOS",
            "start": 101,
            "type": "Identifier"
          },
          "init": {
            "end": 108,
            "raw": "2",
            "start": 107,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 2.0,
              "suffix": "None"
            }
          },
          "start": 101,
          "type": "VariableDeclarator"
        },
        "end": 108,
        "kind": "const",
        "start": 101,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 172,
          "id": {
            "end": 118,
            "name": "thickness",
            "start": 109,
            "type": "Identifier"
          },
          "init": {
            "arguments": [
              {
                "end": 170,
                "left": {
                  "end": 148,
                  "left": {
                    "end": 144,
                    "left": {
                      "end": 138,
                      "left": {
                        "end": 134,
                        "name": "distance",
                        "start": 126,
                        "type": "Identifier",
                        "type": "Identifier"
                      },
                      "operator": "*",
                      "right": {
                        "end": 138,
                        "name": "p",
                        "start": 137,
                        "type": "Identifier",
                        "type": "Identifier"
                      },
                      "start": 126,
                      "type": "BinaryExpression",
                      "type": "BinaryExpression"
                    },
                    "operator": "*",
                    "right": {
                      "end": 144,
                      "name": "FOS",
                      "start": 141,
                      "type": "Identifier",
                      "type": "Identifier"
                    },
                    "start": 126,
                    "type": "BinaryExpression",
                    "type": "BinaryExpression"
                  },
                  "operator": "*",
                  "right": {
                    "end": 148,
                    "raw": "6",
                    "start": 147,
                    "type": "Literal",
                    "type": "Literal",
                    "value": {
                      "value": 6.0,
                      "suffix": "None"
                    }
                  },
                  "start": 126,
                  "type": "BinaryExpression",
                  "type": "BinaryExpression"
                },
                "operator": "/",
                "right": {
                  "end": 170,
                  "left": {
                    "end": 162,
                    "name": "sigmaAllow",
                    "start": 152,
                    "type": "Identifier",
                    "type": "Identifier"
                  },
                  "operator": "*",
                  "right": {
                    "end": 170,
                    "name": "width",
                    "start": 165,
                    "type": "Identifier",
                    "type": "Identifier"
                  },
                  "start": 152,
                  "type": "BinaryExpression",
                  "type": "BinaryExpression"
                },
                "start": 126,
                "type": "BinaryExpression",
                "type": "BinaryExpression"
              }
            ],
            "callee": {
              "end": 125,
              "name": "sqrt",
              "start": 121,
              "type": "Identifier"
            },
            "end": 172,
            "start": 121,
            "type": "CallExpression",
            "type": "CallExpression"
          },
          "start": 109,
          "type": "VariableDeclarator"
        },
        "end": 172,
        "kind": "const",
        "start": 109,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 196,
          "id": {
            "end": 180,
            "name": "filletR",
            "start": 173,
            "type": "Identifier"
          },
          "init": {
            "end": 196,
            "left": {
              "end": 192,
              "name": "thickness",
              "start": 183,
              "type": "Identifier",
              "type": "Identifier"
            },
            "operator": "*",
            "right": {
              "end": 196,
              "raw": "2",
              "start": 195,
              "type": "Literal",
              "type": "Literal",
              "value": {
                "value": 2.0,
                "suffix": "None"
              }
            },
            "start": 183,
            "type": "BinaryExpression",
            "type": "BinaryExpression"
          },
          "start": 173,
          "type": "VariableDeclarator"
        },
        "end": 196,
        "kind": "const",
        "start": 173,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 212,
          "id": {
            "end": 208,
            "name": "shelfMountL",
            "start": 197,
            "type": "Identifier"
          },
          "init": {
            "end": 212,
            "raw": "9",
            "start": 211,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 9.0,
              "suffix": "None"
            }
          },
          "start": 197,
          "type": "VariableDeclarator"
        },
        "end": 212,
        "kind": "const",
        "start": 197,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 227,
          "id": {
            "end": 223,
            "name": "wallMountL",
            "start": 213,
            "type": "Identifier"
          },
          "init": {
            "end": 227,
            "raw": "8",
            "start": 226,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 8.0,
              "suffix": "None"
            }
          },
          "start": 213,
          "type": "VariableDeclarator"
        },
        "end": 227,
        "kind": "const",
        "start": 213,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "declaration": {
          "end": 618,
          "id": {
            "end": 236,
            "name": "bracket",
            "start": 229,
            "type": "Identifier"
          },
          "init": {
            "body": [
              {
                "arguments": [
                  {
                    "elements": [
                      {
                        "end": 255,
                        "raw": "0",
                        "start": 254,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 0.0,
                          "suffix": "None"
                        }
                      },
                      {
                        "end": 258,
                        "raw": "0",
                        "start": 257,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 0.0,
                          "suffix": "None"
                        }
                      }
                    ],
                    "end": 259,
                    "start": 253,
                    "type": "ArrayExpression",
                    "type": "ArrayExpression"
                  }
                ],
                "callee": {
                  "end": 252,
                  "name": "startSketchAt",
                  "start": 239,
                  "type": "Identifier"
                },
                "end": 260,
                "start": 239,
                "type": "CallExpression",
                "type": "CallExpression"
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "end": 279,
                          "raw": "0",
                          "start": 278,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "end": 291,
                          "name": "wallMountL",
                          "start": 281,
                          "type": "Identifier",
                          "type": "Identifier"
                        }
                      ],
                      "end": 292,
                      "start": 277,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "end": 270,
                  "name": "line",
                  "start": 266,
                  "type": "Identifier"
                },
                "end": 293,
                "start": 266,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "end": 346,
                    "properties": [
                      {
                        "end": 331,
                        "key": {
                          "end": 321,
                          "name": "radius",
                          "start": 315,
                          "type": "Identifier"
                        },
                        "start": 315,
                        "type": "ObjectProperty",
                        "value": {
                          "end": 331,
                          "name": "filletR",
                          "start": 324,
                          "type": "Identifier",
                          "type": "Identifier"
                        }
                      },
                      {
                        "end": 344,
                        "key": {
                          "end": 339,
                          "name": "offset",
                          "start": 333,
                          "type": "Identifier"
                        },
                        "start": 333,
                        "type": "ObjectProperty",
                        "value": {
                          "end": 344,
                          "raw": "90",
                          "start": 342,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 90.0,
                            "suffix": "None"
                          }
                        }
                      }
                    ],
                    "start": 313,
                    "type": "ObjectExpression",
                    "type": "ObjectExpression"
                  },
                  {
                    "end": 349,
                    "start": 348,
                    "type": "PipeSubstitution",
                    "type": "PipeSubstitution"
                  }
                ],
                "callee": {
                  "end": 312,
                  "name": "tangentialArc",
                  "start": 299,
                  "type": "Identifier"
                },
                "end": 350,
                "start": 299,
                "type": "CallExpression",
                "type": "CallExpression"
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "argument": {
                            "end": 380,
                            "name": "shelfMountL",
                            "start": 369,
                            "type": "Identifier",
                            "type": "Identifier"
                          },
                          "end": 380,
                          "operator": "-",
                          "start": 368,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        },
                        {
                          "end": 383,
                          "raw": "0",
                          "start": 382,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 384,
                      "start": 367,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "end": 360,
                  "name": "line",
                  "start": 356,
                  "type": "Identifier"
                },
                "end": 385,
                "start": 356,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "end": 404,
                          "raw": "0",
                          "start": 403,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "argument": {
                            "end": 416,
                            "name": "thickness",
                            "start": 407,
                            "type": "Identifier",
                            "type": "Identifier"
                          },
                          "end": 416,
                          "operator": "-",
                          "start": 406,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        }
                      ],
                      "end": 417,
                      "start": 402,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "end": 395,
                  "name": "line",
                  "start": 391,
                  "type": "Identifier"
                },
                "end": 418,
                "start": 391,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "end": 447,
                          "name": "shelfMountL",
                          "start": 436,
                          "type": "Identifier",
                          "type": "Identifier"
                        },
                        {
                          "end": 450,
                          "raw": "0",
                          "start": 449,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 451,
                      "start": 435,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "end": 428,
                  "name": "line",
                  "start": 424,
                  "type": "Identifier"
                },
                "end": 452,
                "start": 424,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "end": 537,
                    "properties": [
                      {
                        "end": 509,
                        "key": {
                          "end": 487,
                          "name": "radius",
                          "start": 481,
                          "type": "Identifier"
                        },
                        "start": 481,
                        "type": "ObjectProperty",
                        "value": {
                          "end": 509,
                          "left": {
                            "end": 497,
                            "name": "filletR",
                            "start": 490,
                            "type": "Identifier",
                            "type": "Identifier"
                          },
                          "operator": "-",
                          "right": {
                            "end": 509,
                            "name": "thickness",
                            "start": 500,
                            "type": "Identifier",
                            "type": "Identifier"
                          },
                          "start": 490,
                          "type": "BinaryExpression",
                          "type": "BinaryExpression"
                        }
                      },
                      {
                        "end": 530,
                        "key": {
                          "end": 524,
                          "name": "offset",
                          "start": 518,
                          "type": "Identifier"
                        },
                        "start": 518,
                        "type": "ObjectProperty",
                        "value": {
                          "argument": {
                            "end": 530,
                            "raw": "90",
                            "start": 528,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 90.0,
                              "suffix": "None"
                            }
                          },
                          "end": 530,
                          "operator": "-",
                          "start": 527,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        }
                      }
                    ],
                    "start": 472,
                    "type": "ObjectExpression",
                    "type": "ObjectExpression"
                  },
                  {
                    "end": 540,
                    "start": 539,
                    "type": "PipeSubstitution",
                    "type": "PipeSubstitution"
                  }
                ],
                "callee": {
                  "end": 471,
                  "name": "tangentialArc",
                  "start": 458,
                  "type": "Identifier"
                },
                "end": 541,
                "start": 458,
                "type": "CallExpression",
                "type": "CallExpression"
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "end": 560,
                          "raw": "0",
                          "start": 559,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "argument": {
                            "end": 573,
                            "name": "wallMountL",
                            "start": 563,
                            "type": "Identifier",
                            "type": "Identifier"
                          },
                          "end": 573,
                          "operator": "-",
                          "start": 562,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        }
                      ],
                      "end": 574,
                      "start": 558,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "end": 551,
                  "name": "line",
                  "start": 547,
                  "type": "Identifier"
                },
                "end": 575,
                "start": 547,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "end": 588,
                    "start": 587,
                    "type": "PipeSubstitution",
                    "type": "PipeSubstitution"
                  }
                ],
                "callee": {
                  "end": 586,
                  "name": "close",
                  "start": 581,
                  "type": "Identifier"
                },
                "end": 589,
                "start": 581,
                "type": "CallExpression",
                "type": "CallExpression"
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "length"
                    },
                    "arg": {
                      "end": 617,
                      "name": "width",
                      "start": 612,
                      "type": "Identifier",
                      "type": "Identifier"
                    }
                  }
                ],
                "callee": {
                  "end": 602,
                  "name": "extrude",
                  "start": 595,
                  "type": "Identifier"
                },
                "end": 618,
                "start": 595,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              }
            ],
            "end": 618,
            "start": 239,
            "type": "PipeExpression",
            "type": "PipeExpression"
          },
          "start": 229,
          "type": "VariableDeclarator"
        },
        "end": 618,
        "kind": "const",
        "start": 229,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      }
    ],
    "end": 619,
    "nonCodeMeta": {
      "nonCodeNodes": {
        "0": [
          {
            "end": 25,
            "start": 18,
            "type": "NonCodeNode",
            "value": {
              "type": "inlineComment",
              "value": "psi",
              "style": "line"
            }
          }
        ],
        "1": [
          {
            "end": 44,
            "start": 36,
            "type": "NonCodeNode",
            "value": {
              "type": "inlineComment",
              "value": "inch",
              "style": "line"
            }
          }
        ],
        "2": [
          {
            "end": 76,
            "start": 52,
            "type": "NonCodeNode",
            "value": {
              "type": "inlineComment",
              "value": "Force on shelf - lbs",
              "style": "line"
            }
          }
        ],
        "3": [
          {
            "end": 100,
            "start": 90,
            "type": "NonCodeNode",
            "value": {
              "type": "inlineComment",
              "value": "inches",
              "style": "line"
            }
          }
        ],
        "8": [
          {
            "end": 229,
            "start": 227,
            "type": "NonCodeNode",
            "value": {
              "type": "newLine"
            }
          }
        ]
      },
      "startNodes": []
    },
    "start": 0
  }
}
