mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-02 01:22:31 -04:00
AST create / change / move / delete from blockly
This commit is contained in:
parent
53779220b7
commit
981b85e78f
22 changed files with 11858 additions and 381 deletions
src/engine
|
@ -1,19 +1,5 @@
|
|||
/**
|
||||
* Thread is an internal data structure used by the interpreter. It holds the
|
||||
* state of a thread so it can continue from where it left off, and it has
|
||||
* a stack to support nested control structures and procedure calls.
|
||||
*
|
||||
* @param {String} Unique block identifier
|
||||
*/
|
||||
function Thread (id) {
|
||||
this.topBlockId = id;
|
||||
this.blockPointer = id;
|
||||
this.blockFirstTime = -1;
|
||||
this.nextBlock = null;
|
||||
this.waiting = null;
|
||||
this.runningDeviceBlock = false;
|
||||
this.stack = [];
|
||||
this.repeatCounter = -1;
|
||||
function Thread () {
|
||||
// @todo
|
||||
}
|
||||
|
||||
module.exports = Thread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue