PenguinMod / PenguinMod-Vm

PenguinMod Vm
https://penguinmod.github.io/
BSD 3-Clause "New" or "Revised" License
17 stars 39 forks source link

Evaluate Scratchblocks #24

Open DogeisCut opened 1 year ago

DogeisCut commented 1 year ago

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

lego7set commented 1 year ago

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.

RedMan13 commented 1 year ago

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