John Smith
john@example.com
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing router-template-cross-bar.kcl
{
"Ok": {
"body": [
"commentStart": 131,
"declaration": {
"commentStart": 154,
"end": 0,
"id": {
"name": "routerDiameter",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 171,
"raw": "12.7",
"type": "Literal",
"value": {
"value": 12.7,
"suffix": "None"
}
"type": "VariableDeclarator"
"kind": "const",
"preComments": [
"// Define parameters"
],
"type": "VariableDeclaration",
"type": "VariableDeclaration"
"commentStart": 176,
"name": "templateDiameter",
"commentStart": 195,
"left": {
"raw": "11",
"value": 11.0,
"operator": "/",
"right": {
"commentStart": 200,
"raw": "16",
"value": 16.0,
"type": "BinaryExpression",
"type": "BinaryExpression"
"operator": "*",
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 205,
"name": {
"name": "inch",
"path": [],
"type": "Name"
"type": "CallExpression",
"type": "CallExpression"
"commentStart": 212,
"name": "slateWidthHalf",
"commentStart": 229,
"raw": "41.5",
"value": 41.5,
"commentStart": 236,
"raw": "2",
"value": 2.0,
"commentStart": 238,
"name": "minClampingDistance",
"commentStart": 260,
"raw": "50",
"value": 50.0,
"operator": "+",
"commentStart": 265,
"raw": "30",
"value": 30.0,
"commentStart": 268,
"name": "templateThickness",
"commentStart": 288,
"raw": "10",
"value": 10.0,
"commentStart": 291,
"name": "radius",
"commentStart": 300,
"commentStart": 303,
"name": "depth",
"commentStart": 311,
"commentStart": 313,
"commentStart": 340,
"name": "templateGap",
"commentStart": 355,
"type": "Name",
"operator": "-",
"commentStart": 374,
"commentStart": 392,
"commentStart": 396,
"raw": "0.5",
"value": 0.5,
"",
"// Calculated parameters"
"commentStart": 400,
"name": "distanceToInsideEdge",
"commentStart": 423,
"commentStart": 440,
"commentStart": 460,
"commentStart": 471,
"commentStart": 500,
"name": "sketch001",
"arguments": [
"commentStart": 526,
"name": "XZ",
"commentStart": 512,
"name": "startSketchOn",
"commentStart": 550,
"elements": [
"commentStart": 551,
"raw": "0",
"value": 0.0,
"commentStart": 554,
"commentStart": 562,
"type": "ArrayExpression",
"type": "ArrayExpression"
"commentStart": 576,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"commentStart": 535,
"name": "startProfileAt",
"type": "LabeledArg",
"label": {
"commentStart": 590,
"name": "length",
"arg": {
"commentStart": 599,
"commentStart": 616,
"commentStart": 624,
"name": "tag",
"commentStart": 630,
"type": "TagDeclarator",
"value": "seg01"
"commentStart": 584,
"name": "xLine",
"type": "CallExpressionKw",
"unlabeled": null
"commentStart": 647,
"properties": [
"commentStart": 656,
"key": {
"name": "angleEnd",
"type": "ObjectProperty",
"commentStart": 667,
"commentStart": 677,
"name": "angleStart",
"commentStart": 690,
"raw": "90",
"value": 90.0,
"commentStart": 701,
"commentStart": 710,
"commentStart": 715,
"type": "ObjectExpression",
"type": "ObjectExpression"
"commentStart": 735,
"commentStart": 738,
"value": "seg09"
"commentStart": 643,
"name": "arc",
"commentStart": 757,
"name": "endAbsolute",
"argument": {
"commentStart": 772,
"commentStart": 771,
"type": "UnaryExpression",
"type": "UnaryExpression"
"commentStart": 791,
"commentStart": 797,
"value": "seg03"
"commentStart": 751,
"name": "yLine",
"commentStart": 816,
"commentStart": 825,
"commentStart": 844,
"commentStart": 850,
"value": "seg07"
"commentStart": 810,
"commentStart": 869,
"commentStart": 884,
"commentStart": 892,
"name": "seg01",
"name": "segEndY",
"commentStart": 901,
"commentStart": 922,
"commentStart": 926,
"commentStart": 945,
"commentStart": 951,
"value": "seg02"
"commentStart": 863,
"commentStart": 970,
"commentStart": 984,
"commentStart": 992,
"name": "seg03",
"name": "segEndX",
"commentStart": 1001,
"commentStart": 1022,
"commentStart": 1028,
"value": "seg06"
"commentStart": 964,
"commentStart": 1047,
"commentStart": 1056,
"commentStart": 1076,
"commentStart": 1079,
"commentStart": 1085,
"value": "seg08"
"commentStart": 1041,
"commentStart": 1104,
"commentStart": 1118,
"commentStart": 1126,
"name": "seg02",
"commentStart": 1135,
"commentStart": 1138,
"commentStart": 1144,
"value": "seg05"
"commentStart": 1098,
"commentStart": 1163,
"commentStart": 1177,
"commentStart": 1185,
"commentStart": 1194,
"commentStart": 1213,
"commentStart": 1219,
"value": "seg10"
"commentStart": 1157,
"commentStart": 1238,
"commentStart": 1252,
"commentStart": 1255,
"commentStart": 1261,
"value": "seg04"
"commentStart": 1232,
"commentStart": 1280,
"commentStart": 1297,
"name": "seg04",
"commentStart": 1290,
"name": "segLen",
"commentStart": 1289,
"commentStart": 1274,
"commentStart": 1316,
"commentStart": 1333,
"name": "seg10",
"commentStart": 1326,
"commentStart": 1325,
"commentStart": 1310,
"commentStart": 1352,
"commentStart": 1369,
"name": "seg05",
"commentStart": 1362,
"commentStart": 1361,
"commentStart": 1346,
"commentStart": 1388,
"commentStart": 1405,
"name": "seg08",
"commentStart": 1398,
"commentStart": 1397,
"commentStart": 1382,
"commentStart": 1424,
"commentStart": 1440,
"name": "seg06",
"commentStart": 1433,
"commentStart": 1418,
"commentStart": 1459,
"commentStart": 1476,
"commentStart": 1469,
"commentStart": 1468,
"commentStart": 1453,
"commentStart": 1495,
"commentStart": 1511,
"name": "seg07",
"commentStart": 1504,
"commentStart": 1489,
"commentStart": 1530,
"commentStart": 1546,
"commentStart": 1539,
"commentStart": 1524,
"commentStart": 1563,
"commentStart": 1572,
"commentStart": 1583,
"commentStart": 1594,
"commentStart": 1607,
"raw": "180",
"value": 180.0,
"commentStart": 1619,
"commentStart": 1628,
"commentStart": 1633,
"commentStart": 1653,
"commentStart": 1559,
"commentStart": 1666,
"commentStart": 1680,
"commentStart": 1695,
"commentStart": 1681,
"name": "profileStartX",
"commentStart": 1713,
"commentStart": 1699,
"name": "profileStartY",
"commentStart": 1661,
"name": "line",
"commentStart": 1723,
"name": "close",
"nonCodeMeta": {
"nonCodeNodes": {
"22": [
"commentStart": 1730,
"type": "NonCodeNode",
"type": "newLineBlockComment",
"value": "Extrude the first sketch",
"style": "line"
]
"startNodes": []
"type": "PipeExpression",
"type": "PipeExpression"
"// Create the first sketch"
"commentStart": 1760,
"name": "extrude001",
"commentStart": 1792,
"commentStart": 1801,
"raw": "5",
"value": 5.0,
"commentStart": 1773,
"name": "extrude",
"unlabeled": {
"commentStart": 1781,
"commentStart": 1803,
"commentStart": 1833,
"name": "sketch002",
"commentStart": 1859,
"commentStart": 1871,
"raw": "'START'",
"value": "START"
"commentStart": 1845,
"commentStart": 1900,
"commentStart": 1901,
"commentStart": 1923,
"commentStart": 1927,
"commentStart": 1885,
"commentStart": 1946,
"commentStart": 1947,
"commentStart": 1952,
"commentStart": 1972,
"commentStart": 1975,
"value": "rectangleSegmentA002"
"commentStart": 1935,
"name": "angledLine",
"commentStart": 2014,
"commentStart": 2023,
"commentStart": 2030,
"name": "rectangleSegmentA002",
"name": "segAng",
"commentStart": 2054,
"commentStart": 2065,
"commentStart": 2091,
"commentStart": 2094,
"value": "rectangleSegmentB002"
"commentStart": 2003,
"commentStart": 2133,
"commentStart": 2149,
"commentStart": 2142,
"commentStart": 2187,
"commentStart": 2180,
"commentStart": 2179,
"commentStart": 2217,
"commentStart": 2220,
"value": "rectangleSegmentC002"
"commentStart": 2122,
"commentStart": 2253,
"commentStart": 2267,
"commentStart": 2282,
"commentStart": 2268,
"commentStart": 2300,
"commentStart": 2286,
"commentStart": 2248,
"commentStart": 2310,
"6": [
"commentStart": 2317,
"value": "Extrude the second sketch",
"// Create the second sketch"
"commentStart": 2348,
"name": "extrude002",
"commentStart": 2380,
"commentStart": 2389,
"raw": "13",
"value": 13.0,
"commentStart": 2361,
"commentStart": 2369,
"commentStart": 2392,
"commentStart": 2421,
"name": "sketch003",
"commentStart": 2447,
"commentStart": 2459,
"commentStart": 2433,
"commentStart": 2488,
"commentStart": 2490,
"commentStart": 2489,
"commentStart": 2512,
"commentStart": 2516,
"commentStart": 2473,
"commentStart": 2535,
"commentStart": 2536,
"commentStart": 2539,
"commentStart": 2559,
"commentStart": 2562,
"value": "rectangleSegmentA001"
"commentStart": 2524,
"commentStart": 2601,
"commentStart": 2610,
"commentStart": 2617,
"name": "rectangleSegmentA001",
"commentStart": 2641,
"commentStart": 2652,
"commentStart": 2678,
"commentStart": 2681,
"value": "rectangleSegmentB001"
"commentStart": 2590,
"commentStart": 2720,
"commentStart": 2736,
"commentStart": 2729,
"commentStart": 2774,
"commentStart": 2767,
"commentStart": 2766,
"commentStart": 2804,
"commentStart": 2807,
"value": "rectangleSegmentC001"
"commentStart": 2709,
"commentStart": 2840,
"commentStart": 2854,
"commentStart": 2869,
"commentStart": 2855,
"commentStart": 2887,
"commentStart": 2873,
"commentStart": 2835,
"commentStart": 2897,
"commentStart": 2904,
"value": "Extrude the third sketch",
"// Create the third sketch"
"commentStart": 2934,
"name": "extrude003",
"commentStart": 2966,
"commentStart": 2975,
"commentStart": 2947,
"commentStart": 2955,
"commentStart": 2978,
"commentStart": 3008,
"name": "sketch004",
"commentStart": 3034,
"commentStart": 3046,
"raw": "'END'",
"value": "END"
"commentStart": 3020,
"commentStart": 3073,
"commentStart": 3075,
"commentStart": 3074,
"commentStart": 3097,
"commentStart": 3101,
"commentStart": 3058,
"commentStart": 3120,
"commentStart": 3121,
"commentStart": 3124,
"commentStart": 3147,
"commentStart": 3151,
"commentStart": 3154,
"value": "rectangleSegmentA003"
"commentStart": 3109,
"commentStart": 3193,
"commentStart": 3202,
"commentStart": 3209,
"name": "rectangleSegmentA003",
"commentStart": 3233,
"commentStart": 3244,
"commentStart": 3270,
"commentStart": 3273,
"value": "rectangleSegmentB003"
"commentStart": 3182,
"commentStart": 3312,
"commentStart": 3328,
"commentStart": 3321,
"commentStart": 3366,
"commentStart": 3359,
"commentStart": 3358,
"commentStart": 3396,
"commentStart": 3399,
"value": "rectangleSegmentC003"
"commentStart": 3301,
"commentStart": 3432,
"commentStart": 3446,
"commentStart": 3461,
"commentStart": 3447,
"commentStart": 3479,
"commentStart": 3465,
"commentStart": 3427,
"commentStart": 3489,
"commentStart": 3496,
"value": "Extrude the fourth sketch",
"// Create the fourth sketch"
"commentStart": 3527,
"name": "extrude004",
"commentStart": 3559,
"commentStart": 3568,
"raw": "4",
"value": 4.0,
"commentStart": 3540,
"commentStart": 3548,
"commentStart": 0,
"innerAttrs": [
"commentStart": 99,
"name": "settings",
"// Router template for a cross bar",
"// A guide for routing a notch into a cross bar.",
"// Set units"
"commentStart": 108,
"name": "defaultLengthUnit",
"commentStart": 128,
"name": "mm",
"type": "Annotation"
"nonCodeNodes": {},
"startNodes": [
"type": "newLine"
"start": 0