Tim Mickel
|
97f7571c6f
|
Prototype implementation of yielding reporters
|
2016-06-30 18:56:23 -04:00 |
|
Tim Mickel
|
190208b620
|
Clean up yield-timers: support multiple, move logic to Threads.
|
2016-06-30 18:56:23 -04:00 |
|
Tim Mickel
|
652cc8a31c
|
Fix references to window
|
2016-06-21 14:29:40 -04:00 |
|
Tim Mickel
|
695d0bd7fd
|
Merge pull request #80 from tmickel/bugfix/empty-fields
Handling empty fields
|
2016-06-17 11:46:36 -04:00 |
|
Tim Mickel
|
7427fe4ff3
|
Add fix for adapter to deal with empty fields
|
2016-06-14 18:14:04 -04:00 |
|
Tim Mickel
|
056fb76492
|
Remove try/catch in execution - fix #75
|
2016-06-13 11:23:39 -04:00 |
|
Tim Mickel
|
a58fa43572
|
Add reset to numYieldingThreads and comment about YieldTimers
|
2016-06-10 13:38:35 -04:00 |
|
Tim Mickel
|
e9eb7c6e57
|
Remove leftover console.groupEnd s in execute
|
2016-06-10 13:34:07 -04:00 |
|
Tim Mickel
|
0bf9ab59a1
|
Add implementation for ifElse
|
2016-06-10 10:40:15 -04:00 |
|
Tim Mickel
|
506e9c32be
|
Don't attempt to glow a block that isn't known in the VM
|
2016-06-10 08:48:39 -04:00 |
|
Tim Mickel
|
7cc0c00da6
|
Correctly deal with empty substacks.
The stack needs to be popped in this situation.
|
2016-06-10 08:47:54 -04:00 |
|
Tim Mickel
|
559a2a0fab
|
Remove redundant piece of code
The stack is pushed in after the thread finishes (`proceedThread`).
|
2016-06-10 08:41:44 -04:00 |
|
Tim Mickel
|
526a260101
|
Simplify execution by removing nextBlock
Everything is managed by the stack, including what the execute() function does.
|
2016-06-09 17:08:30 -04:00 |
|
Tim Mickel
|
d52938c255
|
Bind thread.yield passed to primitive to actual thread
|
2016-06-09 15:06:24 -04:00 |
|
Tim Mickel
|
88402ee68c
|
Move popStack to inside execute
|
2016-06-09 14:45:54 -04:00 |
|
Tim Mickel
|
b0441e2ef5
|
Implement stub for number and add blocks
|
2016-06-09 14:29:07 -04:00 |
|
Tim Mickel
|
a987d9d9cc
|
Only include field value in execute.argValues
|
2016-06-09 14:27:11 -04:00 |
|
Tim Mickel
|
c21700380f
|
Pull sequencer-related callbacks out of execute
|
2016-06-09 14:23:34 -04:00 |
|
Tim Mickel
|
9df470255e
|
Add helpers to thread object
|
2016-06-09 14:22:58 -04:00 |
|
Tim Mickel
|
1d16a97115
|
Recursive evaluation for block arguments
|
2016-06-09 13:28:50 -04:00 |
|
Tim Mickel
|
c4517a451b
|
Add isInput execution property to avoid proceeding the thread
|
2016-06-09 13:28:06 -04:00 |
|
Tim Mickel
|
6e5ebcf6df
|
Split execution into separate function and file
|
2016-06-09 13:27:30 -04:00 |
|
Tim Mickel
|
3898fe1c45
|
Instrument blocks.js with getters for fields and inputs
|
2016-06-09 13:26:07 -04:00 |
|
Tim Mickel
|
bd7f3245a2
|
Move scratch3 blocks into separate packages.
|
2016-06-09 11:45:58 -04:00 |
|
Tim Mickel
|
b9bd037963
|
Fixing eslint JSDoc from merge
|
2016-06-08 17:25:26 -04:00 |
|
Tim Mickel
|
42d03db28b
|
Merge branch 'develop' into feature/eslint-jsdoc
# Conflicts:
# .eslintrc
# src/index.js
|
2016-06-08 17:23:41 -04:00 |
|
Tim Mickel
|
d17ffbb99b
|
Merge pull request #60 from tmickel/feature/vm-playground-execution
Instrument VM and playground for better execution debugging
|
2016-06-08 17:15:36 -04:00 |
|
Tim Mickel
|
1f1a4941f3
|
Add .eslintrc rule to check JSDoc syntax
And fix the broken syntax rules
|
2016-06-08 16:57:08 -04:00 |
|
Tim Mickel
|
7a42e9ae68
|
Move blockListener to blocks.js; combine flyout listener
|
2016-06-08 13:44:09 -04:00 |
|
Tim Mickel
|
8fa29bc6de
|
Spacing fix in blocks.js
|
2016-06-08 13:27:01 -04:00 |
|
Tim Mickel
|
c1e30cf2ee
|
Add sequencer-level debug console logs
|
2016-06-07 21:05:32 -04:00 |
|
Tim Mickel
|
5767e05d56
|
Add block-by-block feedback to the VM playground
|
2016-06-07 20:59:34 -04:00 |
|
Tim Mickel
|
2339c5e710
|
Additional tests for invalid adapter inputs
|
2016-06-07 12:01:47 -04:00 |
|
Tim Mickel
|
3b4a00ce46
|
Add check for null substackNum , fix numbering
|
2016-06-07 11:32:29 -04:00 |
|
Tim Mickel
|
fd95d3045d
|
Fix property check of topLevel in createBlock
|
2016-06-06 15:58:54 -04:00 |
|
Tim Mickel
|
f63e261892
|
Remove breaking check for blockId
|
2016-06-06 15:58:40 -04:00 |
|
Tim Mickel
|
dbb31462ad
|
Extend getSubstack to support multiple substacks
|
2016-06-06 15:31:14 -04:00 |
|
Tim Mickel
|
9be33089a8
|
Refactor block management into a separate module.
|
2016-06-06 15:29:34 -04:00 |
|
Tim Mickel
|
25c3a38c16
|
Allow top-level creation of shadow blocks in adapter
|
2016-06-06 14:57:58 -04:00 |
|
Tim Mickel
|
aa152fd604
|
Rewrite of moveBlock to better reflect Blockly
|
2016-06-06 14:55:01 -04:00 |
|
Tim Mickel
|
214daa8087
|
Always unset topLevel in deleteStack_
Blocks may have topLevel set even if they are not present in this.stacks
|
2016-06-06 14:54:32 -04:00 |
|
Tim Mickel
|
18e4228399
|
Update runtime's handling of delete for new blocks structure
|
2016-06-06 14:53:59 -04:00 |
|
Tim Mickel
|
285c2792ef
|
Only add to stacks if topLevel is true in CREATE
|
2016-06-06 14:53:42 -04:00 |
|
Tim Mickel
|
9fef9d7edd
|
Fix up adapter's domToBlock
|
2016-06-06 14:44:51 -04:00 |
|
Tim Mickel
|
0dfc72893c
|
Update Runtime createBlock for new structure; _addStack helper.
|
2016-06-06 14:12:43 -04:00 |
|
Tim Mickel
|
b28c50e6a5
|
Rewrite of adapter to support trees of blocks, inputs
|
2016-06-06 14:09:27 -04:00 |
|
Tim Mickel
|
dd53b86b8c
|
Reduce amount of time for executing blocks
|
2016-05-05 13:09:37 -04:00 |
|
Tim Mickel
|
5c03167ec3
|
Hack helper for distance sensors
|
2016-05-03 17:39:02 -04:00 |
|
Tim Mickel
|
659c9b274a
|
Add motorStop patch to stopAll
|
2016-05-03 17:18:28 -04:00 |
|
Tim Mickel
|
79b50e5172
|
Remove block glows from sequencer
|
2016-05-03 17:18:21 -04:00 |
|