Merge pull request from towerofnix/foreach-vm

Implement for-each block
This commit is contained in:
kchadha 2018-03-28 10:52:14 -04:00 committed by GitHub
commit 51306e3492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 75 additions and 0 deletions
src/serialization

View file

@ -768,6 +768,24 @@ const specMap = {
}
]
},
'doForLoop': {
opcode: 'control_for_each',
argMap: [
{
type: 'field',
fieldName: 'VARIABLE'
},
{
type: 'input',
inputOp: 'text',
inputName: 'VALUE'
},
{
type: 'input',
inputName: 'SUBSTACK'
}
]
},
'stopScripts': {
opcode: 'control_stop',
argMap: [