3 years ago

Making scratch blocks is now a single liner (read article)


If you make extensions for scratch, you are probably aware of the fact that block object syntax is pretty much 90% boilerplate. It's still better that scratch's terrifying abstract block syntax tree, but the fact remains, that's a lotta text for a single block! That's why I made block maker, it's a tool that allows you to make blocks in a single line of code, it is mainly finished but it still needs some error handling for invalid syntax and edge cases, feel free to use it anyway!

Yeah, and I have to clarify that this tool does not see the difference between brackets intended for defining block/argument types and brackets intended for text, nor does it care. You can't really use them, the best-case scenario is they would be all turned into square brackets, even these curly ones: {}

If something doesn't work as intended, you can always file an issue here, and as always, stay tuned for updates!

~{]:)



0 comments

Loading...

Next up

New advanced batch blocks and debug blocks coming soon!

You can now translate extensions (Read article)

.... ... .

I went a bit too far when I started implementing pointers and jumps in scratch using lists

all this to basically make a parser

have a bizzare graph and dont @ me

banger

Big Update: Done

Docs: Done

We getting the PR with this one

I usually don't do this but for my timezone it's about to hit 2024 and I wish you guys a happy new year

Me rn