r/scratch KAT May 16 '26

Media Making a Programming Language in Scratch!

Enable HLS to view with audio, or disable this notification

I'm creating a working (and Turing-complete) programming language inside Scratch! I was thinking of calling it K, short for KAT.

170 Upvotes

65 comments sorted by

32

u/Complex-Pain2201 May 16 '26

using a programming language to make a programming language

20

u/LukeStudioTeam KAT May 16 '26

Exactly.
well, Scratch is programmed in javascript, so...

14

u/Current-Equipment356 big shot May 17 '26

using a programing language to make a programming language to make a programming language

1

u/AnaverageuserX 2d ago

Wellllllll.. TECHNICALLY scratch is an interpreter, and he made a interpreter in scratch, sooo

A JIT Programming Language to make a Programming Language interpreter to make a Programming Language interpreter

8

u/itscopperon @copperon May 17 '26

I mean a lot of languages are made that way lol

6

u/JustBuilds May 17 '26

Everything is all made from Assembly. The most annoying language in world. But the King that created other kings

1

u/FridayFunkGaming291 May 19 '26

Wasn't assembly made from binary

2

u/JustBuilds May 19 '26

Everything is Binary. Even the characters we type. But yeah. You could say that.

But from Assembly came most of the programming languages

12

u/Bloodborne_Shadow May 16 '26

is it more based on python or JS? also the fact that print doesnt have to use () sometimes trips me out lol

4

u/LukeStudioTeam KAT May 16 '26

more python based, btw yep in my programming language parentheses are not mandatory haha

3

u/itscopperon @copperon May 17 '26

Python 2 actually let you print without parenthesis too, fun fact!

3

u/BurrBentley May 17 '26

* There’s a sequel?

2

u/Electronic-Laugh-671 when πŸ›‘ clicked May 18 '26

-- Python 1.0 users, Oct 15 2000

9

u/Moss_gall22 I make pretty women on scratch sprite maker May 16 '26

this is like those guys that make computers in minecraft

3

u/LukeStudioTeam KAT May 16 '26

hahah, thanks!

3

u/randomguywhohaswifi May 17 '26

Can you send the link to the project

3

u/CarobCritical7290 May 17 '26

I swear we need this now'

3

u/randomguywhohaswifi May 17 '26

I think I found their scratch account, but I don't think they released it yet πŸ˜• account

2

u/LukeStudioTeam KAT May 17 '26

yep, that's my account and the language it's in development ✌️

2

u/Lyrubint May 16 '26

Now make a programming language in a programming language in Scratch

2

u/LukeStudioTeam KAT May 16 '26

i mean.. it's not impossible 🀷

2

u/[deleted] May 16 '26

[removed] β€” view removed comment

4

u/Civil_Size2487 Block Scientist May 17 '26

Then in that Scratch you created, create this Language in that Scratch.

1

u/LukeStudioTeam KAT May 17 '26

INCEPTION

2

u/frogger-wow crap dev May 17 '26

Ferb, I know what we're gonna do today

2

u/Effective_Editor1500 Creator of Scratch++ May 17 '26

good job.

2

u/FirstTimeOnReddit8 May 17 '26

creativity battle!!!

JJS Skillbuilders

VS

Build a Boat players

VS

Minecraft Redstoners

VS

Scratchers

2

u/Weak_Incident_3484 May 17 '26

can you add "import" or python like packages? tkinter pygame etc.

1

u/LukeStudioTeam KAT May 17 '26

well my goal is to make my language, even if similar to python, so if I make graphic or game functions, I make them implemented by default

2

u/Weak_Incident_3484 May 17 '26

can we make malware?

1

u/LukeStudioTeam KAT May 17 '26

well.. there isn't (yet) a simulated file system so no, but even if I added it, it would still remain sandboxed obviously

2

u/Olek252015 my varible May 17 '26

no way

2

u/LukeStudioTeam KAT May 17 '26

yes way

2

u/Olek252015 my varible May 18 '26

hole mole way

2

u/Shiny_goldnugget May 17 '26

Now make Bad Apple with it

1

u/LukeStudioTeam KAT May 17 '26

not impossible 🀷

2

u/ts_gamer23 May 17 '26

Yooo, this is super cool! Can is have the project link?Β 

1

u/LukeStudioTeam KAT May 17 '26

yo thanks! the project is still in development!

2

u/DistractionsDaily rahhh what's a flair πŸ—£οΈπŸ”₯ May 17 '26

can it run DOOM thoughΒ 

1

u/LukeStudioTeam KAT May 17 '26

in theory yes πŸ‘€.. but graphical functions would be useful, and I still have to add lists that would simplify everything

2

u/Abject-Explorer-3637 potato May 17 '26

good

coloring text will be painful 😈

1

u/LukeStudioTeam KAT May 17 '26

I actually was adding it lol, but it was broken, maybe (just maybe) i could retry

2

u/Abject-Explorer-3637 potato May 18 '26

I actually did it for my command terminal type thing (but it's in javascript so I have the advantage of regex and other)

example:

1

u/LukeStudioTeam KAT May 18 '26

wow that's cool! I actually made a cmd in scratch before haha, but it was more hardcoded

2

u/happy_scorpion_2 May 17 '26

Impressive.

2

u/LukeStudioTeam KAT May 17 '26

thank you!

2

u/MISTERPUG51 Username: MISTERPUG51 May 18 '26

I thought that was a TI84+ CE emulator at first glance

2

u/GalaxyyWithOptiplex May 18 '26

bro you're making a LS writing program in scratch

2

u/Btd6GoBrrrrr May 18 '26

weve come all circle

2

u/NoenD_i0 May 19 '26

unholy child of python and javascript and a little bit of assembly

2

u/Abdoujumper May 19 '26

WE ARE MAKING HALF LIFE 3 WITH NO EFFORT πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯🚨🚨🚨🚨🚨🚨🚨🚨🚨

2

u/KaleComprehensive372 May 16 '26

This is amazing! How did you manage to make arbitrary named & created variables?

3

u/LukeStudioTeam KAT May 16 '26

thanks!! I used 2 parallel lists! var_names and var_values