-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample
68 lines (67 loc) · 1.63 KB
/
example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
x=0;
3s:
rx,2,3,4;
c500,500,100*sin(x);
{
"variables": {
"x": {
"returns": "integer",
"integer": 0
}
},
"loop": 3000,
"statements": [
{
"instruction": "rectangle",
"x": {
"returns": "variable",
"variable": "x"
},
"y": {
"returns": "integer",
"integer": 2
},
"w": {
"returns": "integer",
"integer": 3
},
"h": {
"returns": "integer",
"integer": 4
}
},
{
"instruction": "circle",
"x": {
"returns": "integer",
"integer": 500
},
"y": {
"returns": "integer",
"integer": 500
},
"r": {
"returns": "binop",
"binop": {
"l": {
"returns": "integer",
"integer": 100
},
"r": {
"returns": "funccall",
"funccall": {
"function": "sin",
"arguments": [
{
"returns": "variable",
"variable": "x"
}
]
}
},
"op": "*"
}
}
}
]
}