Merge pull request from towerofnix/while-vm

Implement "while" block
This commit is contained in:
kchadha 2018-04-09 13:48:08 -04:00 committed by GitHub
commit b794e19c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 1 deletions
src/serialization

View file

@ -799,6 +799,19 @@ const specMap = {
}
]
},
'doWhile': {
opcode: 'control_while',
argMap: [
{
type: 'input',
inputName: 'CONDITION'
},
{
type: 'input',
inputName: 'SUBSTACK'
}
]
},
'doForLoop': {
opcode: 'control_for_each',
argMap: [