2024-11-18 16:20:32 -06:00
|
|
|
---
|
|
|
|
|
source: kcl/src/simulation_tests.rs
|
|
|
|
|
description: Result of parsing xz_plane.kcl
|
|
|
|
|
---
|
|
|
|
|
{
|
|
|
|
|
"Ok": {
|
|
|
|
|
"body": [
|
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
|
"end": 149,
|
|
|
|
|
"id": {
|
|
|
|
|
"end": 7,
|
|
|
|
|
"name": "part001",
|
|
|
|
|
"start": 0,
|
|
|
|
|
"type": "Identifier"
|
|
|
|
|
},
|
|
|
|
|
"init": {
|
|
|
|
|
"body": [
|
|
|
|
|
{
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"end": 28,
|
|
|
|
|
"raw": "'XZ'",
|
|
|
|
|
"start": 24,
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"value": "XZ"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"callee": {
|
|
|
|
|
"end": 23,
|
|
|
|
|
"name": "startSketchOn",
|
2024-11-18 16:20:32 -06:00
|
|
|
"start": 10,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 29,
|
|
|
|
|
"start": 10,
|
|
|
|
|
"type": "CallExpression",
|
|
|
|
|
"type": "CallExpression"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"elements": [
|
|
|
|
|
{
|
|
|
|
|
"end": 52,
|
|
|
|
|
"raw": "0",
|
|
|
|
|
"start": 51,
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"value": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"end": 55,
|
|
|
|
|
"raw": "0",
|
|
|
|
|
"start": 54,
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"value": 0.0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"end": 56,
|
|
|
|
|
"start": 50,
|
|
|
|
|
"type": "ArrayExpression",
|
|
|
|
|
"type": "ArrayExpression"
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
{
|
|
|
|
|
"end": 59,
|
|
|
|
|
"start": 58,
|
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"callee": {
|
|
|
|
|
"end": 49,
|
|
|
|
|
"name": "startProfileAt",
|
2024-11-18 16:20:32 -06:00
|
|
|
"start": 35,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 60,
|
|
|
|
|
"start": 35,
|
|
|
|
|
"type": "CallExpression",
|
|
|
|
|
"type": "CallExpression"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"elements": [
|
|
|
|
|
{
|
|
|
|
|
"end": 77,
|
|
|
|
|
"raw": "100",
|
|
|
|
|
"start": 74,
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"value": 100.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"end": 82,
|
|
|
|
|
"raw": "100",
|
|
|
|
|
"start": 79,
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"value": 100.0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"end": 83,
|
|
|
|
|
"start": 73,
|
|
|
|
|
"type": "ArrayExpression",
|
|
|
|
|
"type": "ArrayExpression"
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
{
|
|
|
|
|
"end": 86,
|
|
|
|
|
"start": 85,
|
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"callee": {
|
|
|
|
|
"end": 72,
|
|
|
|
|
"name": "lineTo",
|
2024-11-18 16:20:32 -06:00
|
|
|
"start": 66,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 87,
|
|
|
|
|
"start": 66,
|
|
|
|
|
"type": "CallExpression",
|
|
|
|
|
"type": "CallExpression"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"elements": [
|
|
|
|
|
{
|
|
|
|
|
"end": 104,
|
|
|
|
|
"raw": "100",
|
|
|
|
|
"start": 101,
|
2024-11-18 16:20:32 -06:00
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
2024-12-07 07:16:04 +13:00
|
|
|
"value": 100.0
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
{
|
|
|
|
|
"end": 107,
|
|
|
|
|
"raw": "0",
|
|
|
|
|
"start": 106,
|
2024-11-18 16:20:32 -06:00
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
2024-12-07 07:16:04 +13:00
|
|
|
"value": 0.0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"end": 108,
|
|
|
|
|
"start": 100,
|
|
|
|
|
"type": "ArrayExpression",
|
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"end": 111,
|
|
|
|
|
"start": 110,
|
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"callee": {
|
|
|
|
|
"end": 99,
|
|
|
|
|
"name": "lineTo",
|
|
|
|
|
"start": 93,
|
|
|
|
|
"type": "Identifier"
|
|
|
|
|
},
|
|
|
|
|
"end": 112,
|
|
|
|
|
"start": 93,
|
|
|
|
|
"type": "CallExpression",
|
|
|
|
|
"type": "CallExpression"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"end": 125,
|
|
|
|
|
"start": 124,
|
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"callee": {
|
|
|
|
|
"end": 123,
|
|
|
|
|
"name": "close",
|
|
|
|
|
"start": 118,
|
|
|
|
|
"type": "Identifier"
|
|
|
|
|
},
|
|
|
|
|
"end": 126,
|
|
|
|
|
"start": 118,
|
|
|
|
|
"type": "CallExpression",
|
|
|
|
|
"type": "CallExpression"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"end": 145,
|
|
|
|
|
"left": {
|
|
|
|
|
"end": 141,
|
|
|
|
|
"raw": "5",
|
2024-11-18 16:20:32 -06:00
|
|
|
"start": 140,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"value": 5.0
|
|
|
|
|
},
|
|
|
|
|
"operator": "+",
|
|
|
|
|
"right": {
|
|
|
|
|
"end": 145,
|
|
|
|
|
"raw": "7",
|
|
|
|
|
"start": 144,
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"type": "Literal",
|
|
|
|
|
"value": 7.0
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"start": 140,
|
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
|
"type": "BinaryExpression"
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
{
|
|
|
|
|
"end": 148,
|
|
|
|
|
"start": 147,
|
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"callee": {
|
|
|
|
|
"end": 139,
|
|
|
|
|
"name": "extrude",
|
2024-11-18 16:20:32 -06:00
|
|
|
"start": 132,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
|
},
|
|
|
|
|
"end": 149,
|
|
|
|
|
"start": 132,
|
|
|
|
|
"type": "CallExpression",
|
|
|
|
|
"type": "CallExpression"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"end": 149,
|
|
|
|
|
"start": 10,
|
|
|
|
|
"type": "PipeExpression",
|
|
|
|
|
"type": "PipeExpression"
|
|
|
|
|
},
|
|
|
|
|
"start": 0,
|
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
|
},
|
2024-11-18 16:20:32 -06:00
|
|
|
"end": 149,
|
|
|
|
|
"kind": "const",
|
|
|
|
|
"start": 0,
|
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"end": 150,
|
|
|
|
|
"start": 0
|
|
|
|
|
}
|
|
|
|
|
}
|