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": 133,
"end": 0,
"id": {
"name": "routerDiameter",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 150,
"raw": "12.7",
"type": "Literal",
"value": {
"value": 12.7,
"suffix": "None"
}
"type": "VariableDeclarator"
"kind": "const",
"type": "VariableDeclaration",
"type": "VariableDeclaration"
"commentStart": 155,
"name": "templateDiameter",
"commentStart": 174,
"left": {
"raw": "11",
"value": 11.0,
"operator": "/",
"right": {
"commentStart": 179,
"raw": "16",
"value": 16.0,
"type": "BinaryExpression",
"type": "BinaryExpression"
"operator": "*",
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 184,
"name": {
"name": "inch",
"path": [],
"type": "Name"
"type": "CallExpression",
"type": "CallExpression"
"commentStart": 191,
"name": "templateGap",
"commentStart": 206,
"type": "Name",
"operator": "-",
"commentStart": 225,
"commentStart": 243,
"raw": "2",
"value": 2.0,
"commentStart": 247,
"raw": "0.5",
"value": 0.5,
"commentStart": 251,
"name": "slateWidthHalf",
"commentStart": 268,
"raw": "41.5",
"value": 41.5,
"commentStart": 275,
"commentStart": 277,
"name": "minClampingDistance",
"commentStart": 299,
"raw": "50",
"value": 50.0,
"operator": "+",
"commentStart": 304,
"raw": "30",
"value": 30.0,
"commentStart": 307,
"name": "templateThickness",
"commentStart": 327,
"raw": "10",
"value": 10.0,
"commentStart": 330,
"name": "radius",
"commentStart": 339,
"commentStart": 342,
"name": "depth",
"commentStart": 350,
"commentStart": 353,
"name": "distanceToInsideEdge",
"commentStart": 376,
"commentStart": 393,
"commentStart": 413,
"commentStart": 425,
"name": "sketch001",
"arguments": [
"commentStart": 451,
"name": "XZ",
],
"commentStart": 437,
"name": "startSketchOn",
"commentStart": 475,
"elements": [
"commentStart": 476,
"raw": "0",
"value": 0.0,
"commentStart": 479,
"commentStart": 487,
"type": "ArrayExpression",
"type": "ArrayExpression"
"commentStart": 501,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"commentStart": 460,
"name": "startProfileAt",
"type": "LabeledArg",
"label": {
"commentStart": 515,
"name": "length",
"arg": {
"commentStart": 524,
"commentStart": 541,
"commentStart": 549,
"name": "tag",
"commentStart": 555,
"type": "TagDeclarator",
"value": "seg01"
"commentStart": 509,
"name": "xLine",
"type": "CallExpressionKw",
"unlabeled": null
"commentStart": 572,
"properties": [
"commentStart": 581,
"key": {
"name": "angleEnd",
"type": "ObjectProperty",
"commentStart": 592,
"commentStart": 602,
"name": "angleStart",
"commentStart": 615,
"raw": "90",
"value": 90.0,
"commentStart": 626,
"commentStart": 635,
"commentStart": 640,
"type": "ObjectExpression",
"type": "ObjectExpression"
"commentStart": 660,
"commentStart": 663,
"value": "seg09"
"commentStart": 568,
"name": "arc",
"commentStart": 682,
"name": "endAbsolute",
"argument": {
"commentStart": 697,
"commentStart": 696,
"type": "UnaryExpression",
"type": "UnaryExpression"
"commentStart": 716,
"commentStart": 722,
"value": "seg03"
"commentStart": 676,
"name": "yLine",
"commentStart": 741,
"commentStart": 750,
"commentStart": 769,
"commentStart": 775,
"value": "seg07"
"commentStart": 735,
"commentStart": 794,
"commentStart": 809,
"commentStart": 817,
"name": "seg01",
"name": "segEndY",
"commentStart": 826,
"commentStart": 847,
"commentStart": 851,
"commentStart": 870,
"commentStart": 876,
"value": "seg02"
"commentStart": 788,
"commentStart": 895,
"commentStart": 909,
"commentStart": 917,
"name": "seg03",
"name": "segEndX",
"commentStart": 926,
"commentStart": 947,
"commentStart": 953,
"value": "seg06"
"commentStart": 889,
"commentStart": 972,
"commentStart": 981,
"commentStart": 1001,
"commentStart": 1004,
"commentStart": 1010,
"value": "seg08"
"commentStart": 966,
"commentStart": 1029,
"commentStart": 1043,
"commentStart": 1051,
"name": "seg02",
"commentStart": 1060,
"commentStart": 1063,
"commentStart": 1069,
"value": "seg05"
"commentStart": 1023,
"commentStart": 1088,
"commentStart": 1102,
"commentStart": 1110,
"commentStart": 1119,
"commentStart": 1138,
"commentStart": 1144,
"value": "seg10"
"commentStart": 1082,
"commentStart": 1163,
"commentStart": 1177,
"commentStart": 1180,
"commentStart": 1186,
"value": "seg04"
"commentStart": 1157,
"commentStart": 1205,
"commentStart": 1222,
"name": "seg04",
"commentStart": 1215,
"name": "segLen",
"commentStart": 1214,
"commentStart": 1199,
"commentStart": 1241,
"commentStart": 1258,
"name": "seg10",
"commentStart": 1251,
"commentStart": 1250,
"commentStart": 1235,
"commentStart": 1277,
"commentStart": 1294,
"name": "seg05",
"commentStart": 1287,
"commentStart": 1286,
"commentStart": 1271,
"commentStart": 1313,
"commentStart": 1330,
"name": "seg08",
"commentStart": 1323,
"commentStart": 1322,
"commentStart": 1307,
"commentStart": 1349,
"commentStart": 1365,
"name": "seg06",
"commentStart": 1358,
"commentStart": 1343,
"commentStart": 1384,
"commentStart": 1401,
"commentStart": 1394,
"commentStart": 1393,
"commentStart": 1378,
"commentStart": 1420,
"commentStart": 1436,
"name": "seg07",
"commentStart": 1429,
"commentStart": 1414,
"commentStart": 1455,
"commentStart": 1471,
"commentStart": 1464,
"commentStart": 1449,
"commentStart": 1488,
"commentStart": 1497,
"commentStart": 1508,
"commentStart": 1519,
"commentStart": 1532,
"raw": "180",
"value": 180.0,
"commentStart": 1544,
"commentStart": 1553,
"commentStart": 1558,
"commentStart": 1578,
"commentStart": 1484,
"commentStart": 1591,
"commentStart": 1605,
"commentStart": 1620,
"commentStart": 1606,
"name": "profileStartX",
"commentStart": 1638,
"commentStart": 1624,
"name": "profileStartY",
"commentStart": 1586,
"name": "line",
"commentStart": 1648,
"name": "close",
"type": "PipeExpression",
"type": "PipeExpression"
"commentStart": 1656,
"name": "extrude001",
"commentStart": 1688,
"commentStart": 1697,
"raw": "5",
"value": 5.0,
"commentStart": 1669,
"name": "extrude",
"unlabeled": {
"commentStart": 1677,
"commentStart": 1699,
"commentStart": 1701,
"name": "sketch003",
"commentStart": 1727,
"commentStart": 1739,
"raw": "'START'",
"value": "START"
"commentStart": 1713,
"commentStart": 1768,
"commentStart": 1769,
"commentStart": 1791,
"commentStart": 1795,
"commentStart": 1753,
"commentStart": 1814,
"commentStart": 1815,
"commentStart": 1820,
"commentStart": 1840,
"commentStart": 1843,
"value": "rectangleSegmentA002"
"commentStart": 1803,
"name": "angledLine",
"commentStart": 1882,
"commentStart": 1891,
"commentStart": 1898,
"name": "rectangleSegmentA002",
"name": "segAng",
"commentStart": 1922,
"commentStart": 1933,
"commentStart": 1959,
"commentStart": 1962,
"value": "rectangleSegmentB002"
"commentStart": 1871,
"commentStart": 2001,
"commentStart": 2017,
"commentStart": 2010,
"commentStart": 2055,
"commentStart": 2048,
"commentStart": 2047,
"commentStart": 2085,
"commentStart": 2088,
"value": "rectangleSegmentC002"
"commentStart": 1990,
"commentStart": 2121,
"commentStart": 2135,
"commentStart": 2150,
"commentStart": 2136,
"commentStart": 2168,
"commentStart": 2154,
"commentStart": 2116,
"commentStart": 2178,
"commentStart": 2186,
"name": "extrude003",
"commentStart": 2218,
"commentStart": 2227,
"raw": "13",
"value": 13.0,
"commentStart": 2199,
"commentStart": 2207,
"commentStart": 2230,
"commentStart": 2232,
"name": "sketch002",
"commentStart": 2258,
"commentStart": 2270,
"commentStart": 2244,
"commentStart": 2299,
"commentStart": 2301,
"commentStart": 2300,
"commentStart": 2323,
"commentStart": 2327,
"commentStart": 2284,
"commentStart": 2346,
"commentStart": 2347,
"commentStart": 2350,
"commentStart": 2370,
"commentStart": 2373,
"value": "rectangleSegmentA001"
"commentStart": 2335,
"commentStart": 2412,
"commentStart": 2421,
"commentStart": 2428,
"name": "rectangleSegmentA001",
"commentStart": 2452,
"commentStart": 2463,
"commentStart": 2489,
"commentStart": 2492,
"value": "rectangleSegmentB001"
"commentStart": 2401,
"commentStart": 2531,
"commentStart": 2547,
"commentStart": 2540,
"commentStart": 2585,
"commentStart": 2578,
"commentStart": 2577,
"commentStart": 2615,
"commentStart": 2618,
"value": "rectangleSegmentC001"
"commentStart": 2520,
"commentStart": 2651,
"commentStart": 2665,
"commentStart": 2680,
"commentStart": 2666,
"commentStart": 2698,
"commentStart": 2684,
"commentStart": 2646,
"commentStart": 2708,
"commentStart": 2715,
"commentStart": 2717,
"name": "extrude002",
"commentStart": 2749,
"commentStart": 2758,
"commentStart": 2730,
"commentStart": 2738,
"commentStart": 2761,
"commentStart": 2763,
"name": "sketch004",
"commentStart": 2789,
"commentStart": 2801,
"raw": "'END'",
"value": "END"
"commentStart": 2775,
"commentStart": 2828,
"commentStart": 2830,
"commentStart": 2829,
"commentStart": 2852,
"commentStart": 2856,
"commentStart": 2813,
"commentStart": 2875,
"commentStart": 2876,
"commentStart": 2879,
"commentStart": 2902,
"commentStart": 2906,
"commentStart": 2909,
"value": "rectangleSegmentA003"
"commentStart": 2864,
"commentStart": 2948,
"commentStart": 2957,
"commentStart": 2964,
"name": "rectangleSegmentA003",
"commentStart": 2988,
"commentStart": 2999,
"commentStart": 3025,
"commentStart": 3028,
"value": "rectangleSegmentB003"
"commentStart": 2937,
"commentStart": 3067,
"commentStart": 3083,
"commentStart": 3076,
"commentStart": 3121,
"commentStart": 3114,
"commentStart": 3113,
"commentStart": 3151,
"commentStart": 3154,
"value": "rectangleSegmentC003"
"commentStart": 3056,
"commentStart": 3187,
"commentStart": 3201,
"commentStart": 3216,
"commentStart": 3202,
"commentStart": 3234,
"commentStart": 3220,
"commentStart": 3182,
"commentStart": 3244,
"commentStart": 3252,
"name": "extrude004",
"commentStart": 3284,
"commentStart": 3293,
"raw": "4",
"value": 4.0,
"commentStart": 3265,
"commentStart": 3273,
"commentStart": 0,
"innerAttrs": [
"commentStart": 99,
"name": "settings",
"preComments": [
"// 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"
"nonCodeMeta": {
"nonCodeNodes": {
"10": [
"type": "NonCodeNode",
"type": "newLine"
"12": [
"13": [
"14": [
]
"startNodes": [
"start": 0