Discuss Scratch

SimpleSimulator
Scratcher
3 posts

PyScratch, A utility to create blocks from text.

Hi everyone! This is my first time in the forums, I have a cool project to share,

I have been working on a tool called PyScratch, it is a framework for making blocks but it has a built in programming language called ScratchText. It's super simple right now, and programming is very similar to reading blocks. For example:

move (10) steps

becomes

move (10) steps
.

The Python part comes from a module I made that has methods for making blocks with a Python class. The ScratchText part is for parsing a text file into blocks.

If you are interesting in helping out, using, or testing the project, I have more details here:
https://github.com/IfanSnek/PyScratch
It is all open source.

I will try to answer question here if you have any!
ZZC12345
Scratcher
500+ posts

PyScratch, A utility to create blocks from text.

Pretty cool, and great documentation (unlike most of the ATer's projects). Have you seen scratchblocks? It's a library used by the Scratch Wiki and Forums to render Scratch Blocks from text, with a syntax similar to yours. You might want to try changing your syntax to something similar because most people are more used to that syntax.
Also, check out tosh, which is a Scratch 2 version of what you're making now.

Since this is your first time on the forums, most of Scratch's text-based (aka “real”) development community lives on the Advanced Topics forums, which is much more active than the Open Source Projects forums. Try making a new topic in that forum because people will be more likely to see it there.

Just hit report on your post and type “Move to the Advanced Topics Forum”. The report button doesn't actually automatically mute you or do anything like Scratch comments - it just pings moderators, which will see your message and (hopefully) move the post to Advanced Topics.

This is my signature. Go check out my GitHub if you want to!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Make sure to check out these cool projects, written in real code! (outdated, sorry)
Aviate - Itinerary - Scratch Auth - Orange OS Linux Distro - ocular - Leopard - PyHelp - My GitHub
SimpleSimulator
Scratcher
3 posts

PyScratch, A utility to create blocks from text.

Thanks! Yeah, I was thinking about integration with scratchblocks, especially for preview. You are probably right that the syntax is more known. I might do that. Thanks for the advice!
RandomCocconut
Scratcher
500+ posts

PyScratch, A utility to create blocks from text.

What's the utility? Scratch made blocks to program, text language programming makes scratch just harder…

AA OK
ZZC12345
Scratcher
500+ posts

PyScratch, A utility to create blocks from text.

RandomCocconut wrote:

What's the utility? Scratch made blocks to program, text language programming makes scratch just harder…
While you may feel more comfortable block-coding, some people (including me) feel far more flexible typing, as almost all other programming languages are text-based.

This is my signature. Go check out my GitHub if you want to!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Make sure to check out these cool projects, written in real code! (outdated, sorry)
Aviate - Itinerary - Scratch Auth - Orange OS Linux Distro - ocular - Leopard - PyHelp - My GitHub

Powered by DjangoBB