PenguinMod/PenguinMod-Vm

Evaluate Scratchblocks

Opened this issue · 2 comments

Another possibly dumb idea, scratchblocks eval blocks.

msedge_xj85EsLdnp
msedge_SYCxaBsM8v
msedge_lt2KWgdNJo
msedge_A50zTRLK1w

Basically it'd run the blocks you type into the input. With the reporter well, reporting, and the command, running the command blocks. It would also have access to variables and such.

Could be renamed to evaluate stack and evaluate reporter leaving out the boolean too

you might wanna use the regular scratch categories from Scratch.vm.runtime.ext_scratch3_? and the question mark can be replaced with control, data, event, looks, motion, operators, procedures (custom blocks idk why you need this), sensing, and sound. do your own parsing with your own custom extensions. maybe the devs could add a built in extension for this? idk.

you might wanna use the regular scratch categories from Scratch.vm.runtime.ext_scratch3_? and the question mark can be replaced with control, data, event, looks, motion, operators, procedures (custom blocks idk why you need this), sensing, and sound. do your own parsing with your own custom extensions. maybe the devs could add a built in extension for this? idk.

it would be significantly easier and more compatible to just make it parse the scratchblocks code into the compiler sudo code and compile that