mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-15 07:51:04 -04:00
Update "anatomy of a block" README for new structure
This commit is contained in:
parent
7732409102
commit
c8e050494c
1 changed files with 24 additions and 26 deletions
50
README.md
50
README.md
|
@ -52,35 +52,33 @@ The Virtual Machine constructs and maintains the state of an [Abstract Syntax Tr
|
||||||
#### Anatomy of a Block
|
#### Anatomy of a Block
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "^1r~63Gdl7;Dh?I*OP3_",
|
"7AJZR#NA;m*b}R]pdq63": {
|
||||||
"opcode": "wedo_motorclockwise",
|
"id": "7AJZR#NA;m*b}R]pdq63",
|
||||||
"next": null,
|
"opcode": "control_wait",
|
||||||
"fields": {
|
"inputs": {
|
||||||
"DURATION": {
|
"DURATION": {
|
||||||
"name": "DURATION",
|
"name": "DURATION",
|
||||||
"value": null,
|
"block": ",xA8/S!Z6+kR,9dph.rO"
|
||||||
"blocks": {
|
|
||||||
"1?P=eV(OiDY3vMk!24Ip": {
|
|
||||||
"id": "1?P=eV(OiDY3vMk!24Ip",
|
|
||||||
"opcode": "math_number",
|
|
||||||
"next": null,
|
|
||||||
"fields": {
|
|
||||||
"NUM": {
|
|
||||||
"name": "NUM",
|
|
||||||
"value": "10",
|
|
||||||
"blocks": null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"SUBSTACK": {
|
|
||||||
"name": "SUBSTACK",
|
|
||||||
"value": "@1ln(HsUO4!]*2*%BrE|",
|
|
||||||
"blocks": null
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"fields": {},
|
||||||
|
"next": null,
|
||||||
|
"topLevel": true
|
||||||
|
},
|
||||||
|
",xA8/S!Z6+kR,9dph.rO": {
|
||||||
|
"id": ",xA8/S!Z6+kR,9dph.rO",
|
||||||
|
"opcode": "math_number",
|
||||||
|
"inputs": {},
|
||||||
|
"fields": {
|
||||||
|
"NUM": {
|
||||||
|
"name": "NUM",
|
||||||
|
"value": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"next": null,
|
||||||
|
"topLevel": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue