Command Language Playground
{
"type": "Program",
"start": 0,
"end": 49,
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 14,
"expression": {
"type": "CallExpression",
"start": 0,
"end": 13,
"callee": {
"type": "Identifier",
"start": 0,
"end": 4,
"name": "rect"
},
"arguments": [
{
"type": "Literal",
"start": 5,
"end": 6,
"value": 4,
"raw": "4"
},
{
"type": "Literal",
"start": 7,
"end": 12,
"value": "red",
"raw": "\"red\""
}
],
"optional": false
}
},
{
"type": "ExpressionStatement",
"start": 14,
"end": 21,
"expression": {
"type": "CallExpression",
"start": 14,
"end": 20,
"callee": {
"type": "Identifier",
"start": 14,
"end": 17,
"name": "gap"
},
"arguments": [
{
"type": "Literal",
"start": 18,
"end": 19,
"value": 3,
"raw": "3"
}
],
"optional": false
}
},
{
"type": "ExpressionStatement",
"start": 21,
"end": 49,
"expression": {
"type": "CallExpression",
"start": 21,
"end": 49,
"callee": {
"type": "Identifier",
"start": 21,
"end": 25,
"name": "path"
},
"arguments": [
{
"type": "Literal",
"start": 26,
"end": 28,
"value": 12,
"raw": "12"
},
{
"type": "Literal",
"start": 29,
"end": 40,
"value": "indenture",
"raw": "\"indenture\""
},
{
"type": "Literal",
"start": 41,
"end": 48,
"value": "black",
"raw": "\"black\""
}
],
"optional": false
}
}
],
"sourceType": "script"
}
[
{
"command": {
"command": "rect",
"params": [
4,
"red"
]
}
},
{
"command": {
"command": "gap",
"params": [
3
]
}
},
{
"command": {
"command": "path",
"params": [
12,
"indenture",
"black"
]
}
}
]