--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing ssi_pattern.kcl --- { "Ok": { "body": [ { "commentStart": 0, "declaration": { "commentStart": 0, "end": 0, "id": { "commentStart": 0, "end": 0, "name": "sketch001", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "commentStart": 26, "end": 0, "raw": "'XZ'", "start": 0, "type": "Literal", "type": "Literal", "value": "XZ" } ], "callee": { "abs_path": false, "commentStart": 12, "end": 0, "name": { "commentStart": 12, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 12, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 52, "elements": [ { "argument": { "commentStart": 54, "end": 0, "raw": "4.35", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.35, "suffix": "None" } }, "commentStart": 53, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, { "argument": { "commentStart": 61, "end": 0, "raw": "12.26", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 12.26, "suffix": "None" } }, "commentStart": 60, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 69, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 37, "end": 0, "name": { "commentStart": 37, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 37, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 83, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 92, "end": 0, "raw": "10.2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 10.2, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 77, "end": 0, "name": { "commentStart": 77, "end": 0, "name": "yLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 77, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 108, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 114, "elements": [ { "commentStart": 115, "end": 0, "raw": "0.54", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.54, "suffix": "None" } }, { "argument": { "commentStart": 122, "end": 0, "raw": "0.03", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.03, "suffix": "None" } }, "commentStart": 121, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 103, "end": 0, "name": { "commentStart": 103, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 103, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "commentStart": 150, "elements": [ { "commentStart": 151, "end": 0, "raw": "20.4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 20.4, "suffix": "None" } }, { "commentStart": 157, "end": 0, "raw": "14.61", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 14.61, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 165, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 134, "end": 0, "name": { "commentStart": 134, "end": 0, "name": "tangentialArcTo", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 134, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 179, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "commentStart": 189, "end": 0, "raw": "26.76", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 26.76, "suffix": "None" } }, "commentStart": 188, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 173, "end": 0, "name": { "commentStart": 173, "end": 0, "name": "yLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 173, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 206, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 220, "elements": [ { "arguments": [ { "commentStart": 235, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 221, "end": 0, "name": { "commentStart": 221, "end": 0, "name": "profileStartX", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 221, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 253, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 239, "end": 0, "name": { "commentStart": 239, "end": 0, "name": "profileStartY", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 239, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 258, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 264, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg01" } } ], "callee": { "abs_path": false, "commentStart": 201, "end": 0, "name": { "commentStart": 201, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 201, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [], "callee": { "abs_path": false, "commentStart": 277, "end": 0, "name": { "commentStart": 277, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 277, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "commentStart": 12, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 284, "declaration": { "commentStart": 286, "end": 0, "id": { "commentStart": 286, "end": 0, "name": "extrude001", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 318, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 327, "end": 0, "raw": "50", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 50.0, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 299, "end": 0, "name": { "commentStart": 299, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 299, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, "commentStart": 307, "end": 0, "name": { "commentStart": 307, "end": 0, "name": "sketch001", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 330, "declaration": { "commentStart": 332, "end": 0, "id": { "commentStart": 332, "end": 0, "name": "sketch002", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 358, "end": 0, "name": { "commentStart": 358, "end": 0, "name": "extrude001", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "abs_path": false, "commentStart": 370, "end": 0, "name": { "commentStart": 370, "end": 0, "name": "seg01", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 344, "end": 0, "name": { "commentStart": 344, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 344, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 389, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 398, "elements": [ { "argument": { "commentStart": 400, "end": 0, "raw": "2.08", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.08, "suffix": "None" } }, "commentStart": 399, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, { "commentStart": 406, "end": 0, "raw": "47.7", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 47.7, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 413, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 422, "end": 0, "raw": "1.4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.4, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 382, "end": 0, "name": { "commentStart": 382, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 382, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 448, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 460, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 463, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 474, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 477, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 484, "elements": [ { "commentStart": 485, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 488, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 432, "end": 0, "name": { "commentStart": 432, "end": 0, "name": "patternLinear2d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 432, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 566, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 578, "end": 0, "raw": "6", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 6.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 581, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 592, "end": 0, "raw": "4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 595, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 602, "elements": [ { "commentStart": 603, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "argument": { "commentStart": 607, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "commentStart": 606, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 550, "end": 0, "name": { "commentStart": 550, "end": 0, "name": "patternLinear2d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 550, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 624, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "commentStart": 634, "end": 0, "raw": "40", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 40.0, "suffix": "None" } }, "commentStart": 633, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 616, "end": 0, "name": { "commentStart": 616, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 616, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 344, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "2": [ { "commentStart": 493, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "blockComment", "value": "Instances was reduced from 12 to speed this up.", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "commentStart": 0, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "0": [ { "commentStart": 284, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "1": [ { "commentStart": 330, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 } }