2025-03-06 18:01:24 -05:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of parsing i-beam.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"declaration": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamLength",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "24",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 24.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"declaration": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamWidth",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "2.663",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.663,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"declaration": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamHeight",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "4",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 4.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"declaration": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "wallThickness",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "0.293",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.293,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"declaration": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "sketch001",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "'-XZ'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "-XZ"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "startSketchOn",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"left": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamHeight",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "startProfileAt",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-07 22:07:16 -06:00
|
|
|
"arg": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"left": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "beamWidth",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "xLine",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-07 22:07:16 -06:00
|
|
|
"arg": {
|
|
|
|
"argument": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "wallThickness",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"operator": "-",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "UnaryExpression",
|
|
|
|
"type": "UnaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "yLine",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "endAbsolute",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-07 22:07:16 -06:00
|
|
|
"arg": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"left": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "wallThickness",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "xLine",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "endAbsolute",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "yLine",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "axis",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "'X'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "X"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectExpression",
|
|
|
|
"type": "ObjectExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "mirror2d",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "axis",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "'Y'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Y"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectExpression",
|
|
|
|
"type": "ObjectExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "mirror2d",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamLength",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "extrude",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "PipeExpression",
|
|
|
|
"type": "PipeExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"innerAttrs": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "settings",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "defaultLengthUnit",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "in",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Annotation"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"3": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "Sketch a quadrant of the beam cross section, then mirror for symmetry across each axis. Extrude to the appropriate length",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"startNodes": [
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"start": 0,
|
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "blockComment",
|
|
|
|
"value": "I-beam",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "blockComment",
|
|
|
|
"value": "A structural metal beam with an I shaped cross section. Often used in construction",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "blockComment",
|
|
|
|
"value": "Set Units",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "blockComment",
|
|
|
|
"value": "Define Beam Dimensions",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|