kcl-lib 0.2.147

KittyCAD Language implementation and tools
Documentation
---
source: kcl-lib/src/parsing/parser.rs
expression: actual
---
{
  "body": [
    {
      "commentStart": 0,
      "declaration": {
        "commentStart": 0,
        "end": 71,
        "id": {
          "commentStart": 0,
          "end": 5,
          "moduleId": 0,
          "name": "myBox",
          "start": 0,
          "type": "Identifier"
        },
        "init": {
          "body": [
            {
              "arguments": [],
              "callee": {
                "abs_path": false,
                "commentStart": 8,
                "end": 21,
                "moduleId": 0,
                "name": {
                  "commentStart": 8,
                  "end": 21,
                  "moduleId": 0,
                  "name": "startSketchOn",
                  "start": 8,
                  "type": "Identifier"
                },
                "path": [],
                "start": 8,
                "type": "Name"
              },
              "commentStart": 8,
              "end": 25,
              "moduleId": 0,
              "start": 8,
              "type": "CallExpressionKw",
              "type": "CallExpressionKw",
              "unlabeled": {
                "abs_path": false,
                "commentStart": 22,
                "end": 24,
                "moduleId": 0,
                "name": {
                  "commentStart": 22,
                  "end": 24,
                  "moduleId": 0,
                  "name": "XY",
                  "start": 22,
                  "type": "Identifier"
                },
                "path": [],
                "start": 22,
                "type": "Name",
                "type": "Name"
              }
            },
            {
              "arguments": [
                {
                  "type": "LabeledArg",
                  "label": {
                    "commentStart": 42,
                    "end": 44,
                    "moduleId": 0,
                    "name": "at",
                    "start": 42,
                    "type": "Identifier"
                  },
                  "arg": {
                    "abs_path": false,
                    "commentStart": 47,
                    "end": 48,
                    "moduleId": 0,
                    "name": {
                      "commentStart": 47,
                      "end": 48,
                      "moduleId": 0,
                      "name": "p",
                      "start": 47,
                      "type": "Identifier"
                    },
                    "path": [],
                    "start": 47,
                    "type": "Name",
                    "type": "Name"
                  }
                }
              ],
              "callee": {
                "abs_path": false,
                "commentStart": 29,
                "end": 41,
                "moduleId": 0,
                "name": {
                  "commentStart": 29,
                  "end": 41,
                  "moduleId": 0,
                  "name": "startProfile",
                  "start": 29,
                  "type": "Identifier"
                },
                "path": [],
                "start": 29,
                "type": "Name"
              },
              "commentStart": 29,
              "end": 49,
              "moduleId": 0,
              "start": 29,
              "type": "CallExpressionKw",
              "type": "CallExpressionKw",
              "unlabeled": null
            },
            {
              "arguments": [
                {
                  "type": "LabeledArg",
                  "label": {
                    "commentStart": 58,
                    "end": 61,
                    "moduleId": 0,
                    "name": "end",
                    "start": 58,
                    "type": "Identifier"
                  },
                  "arg": {
                    "commentStart": 64,
                    "elements": [
                      {
                        "commentStart": 65,
                        "end": 66,
                        "moduleId": 0,
                        "raw": "0",
                        "start": 65,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 0.0,
                          "suffix": "None"
                        }
                      },
                      {
                        "abs_path": false,
                        "commentStart": 68,
                        "end": 69,
                        "moduleId": 0,
                        "name": {
                          "commentStart": 68,
                          "end": 69,
                          "moduleId": 0,
                          "name": "l",
                          "start": 68,
                          "type": "Identifier"
                        },
                        "path": [],
                        "start": 68,
                        "type": "Name",
                        "type": "Name"
                      }
                    ],
                    "end": 70,
                    "moduleId": 0,
                    "start": 64,
                    "type": "ArrayExpression",
                    "type": "ArrayExpression"
                  }
                }
              ],
              "callee": {
                "abs_path": false,
                "commentStart": 53,
                "end": 57,
                "moduleId": 0,
                "name": {
                  "commentStart": 53,
                  "end": 57,
                  "moduleId": 0,
                  "name": "line",
                  "start": 53,
                  "type": "Identifier"
                },
                "path": [],
                "start": 53,
                "type": "Name"
              },
              "commentStart": 53,
              "end": 71,
              "moduleId": 0,
              "start": 53,
              "type": "CallExpressionKw",
              "type": "CallExpressionKw",
              "unlabeled": null
            }
          ],
          "commentStart": 8,
          "end": 71,
          "moduleId": 0,
          "start": 8,
          "type": "PipeExpression",
          "type": "PipeExpression"
        },
        "moduleId": 0,
        "start": 0,
        "type": "VariableDeclarator"
      },
      "end": 71,
      "kind": "const",
      "moduleId": 0,
      "start": 0,
      "type": "VariableDeclaration",
      "type": "VariableDeclaration"
    }
  ],
  "commentStart": 0,
  "end": 71,
  "moduleId": 0,
  "start": 0
}