Discuss Scratch

liam48D
Scratcher
1000+ posts

I'm making a programming language

Since posting this topic, the following has been implemented:

Objects!
Here's some basic usage:
o => obj()
o.x => 42
print(o.x) # 42

You can nest objects:
o => obj()
o.f => obj()
o.f.x => 7
print(o.f.x) # 7

You can use a colon, this code explains:
o => obj()
k => 'hi'
o:k => 3
print(o.hi) # 3

Added mul and sub
These are aliases for multiply and subtract

Cleaned up code a lot

Fixed lots and lots of bugs
(which I mostly all created while working on objects)

Added files for ESLint

..And that's it.

202e-202e-202e-202e-202e UNI-CODE~~~~~
docaiden
Scratcher
100+ posts

I'm making a programming language

Can you make a way to download it? and a list of commands?

REPEAL THE DMCA!!!!!!
superben100
Scratcher
1000+ posts

I'm making a programming language

Can you write a compiler?

Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
superben100
Scratcher
1000+ posts

I'm making a programming language

Very cool!

Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
liam48D
Scratcher
1000+ posts

I'm making a programming language

superben100 wrote:

Can you write a compiler?
Nah, the internals of PLT makes it a very much interpreted on the go programming language. I have no idea where to begin with a compiler

superben100 wrote:

Very cool!
Thanks! But another project I am/was working on - The Language Nobody Could Come Up With A Good Name For - is generally all around better

docaiden wrote:

Can you make a way to download it? and a list of commands?
You'll want to read through this. All the built-in commands are defined here, but sorry, there's no actual documented list of them anywhere.

202e-202e-202e-202e-202e UNI-CODE~~~~~
docaiden
Scratcher
100+ posts

I'm making a programming language

how do i run programs on it? it seems that i cant run anything

REPEAL THE DMCA!!!!!!
docaiden
Scratcher
100+ posts

I'm making a programming language

*on the CodeMirror

REPEAL THE DMCA!!!!!!
liam48D
Scratcher
1000+ posts

I'm making a programming language

herohamp wrote:

How did you learn to make your own lang?
I didn't really learn how in the sense of reading a book or following a guide. I really was kind of just experimenting with making strings do things

202e-202e-202e-202e-202e UNI-CODE~~~~~
herohamp
Scratcher
1000+ posts

I'm making a programming language

liam48D wrote:

herohamp wrote:

How did you learn to make your own lang?
I didn't really learn how in the sense of reading a book or following a guide. I really was kind of just experimenting with making strings do things

Are you planing to make this be the next javascript or HTML?
liam48D
Scratcher
1000+ posts

I'm making a programming language

herohamp wrote:

liam48D wrote:

herohamp wrote:

How did you learn to make your own lang?
I didn't really learn how in the sense of reading a book or following a guide. I really was kind of just experimenting with making strings do things

Are you planing to make this be the next javascript or HTML?
Well, HTML isn't a programming language, it's a markup language.

And no way, I don't plan on making any new huge thing like JavaScript! But this was a fun project I worked on for a little while as an experiment. TLNCCUWAGNF is much better in general (read: I like its internal code more; I haven't worked on either in a while so I can't really decide what's good or bad about them! ) and it still needs a bit of work on.

202e-202e-202e-202e-202e UNI-CODE~~~~~
serprinss
Scratcher
33 posts

I'm making a programming language

how do you run code in the codemirror editor

GENERATION 364: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment. I did not start this.
superben100
Scratcher
1000+ posts

I'm making a programming language

serprinss wrote:

how do you run code in the codemirror editor
Bit of a necrobump there…

Hello there!
I've been a Scratcher for nine years now, and I'm always happy to help!
I'm not around too often, but I check in here from time to time.
Let me know if you need anything!
|| Probably vibing to “Try” - Lawrence ||
liam48D
Scratcher
1000+ posts

I'm making a programming language

serprinss wrote:

how do you run code in the codemirror editor
You have to hold control and press enter. Sorry there's no button

Most of the code works correctly, but for some reason objects (“obj()” and “o.x”, that kind of thing) don't. So you'll just have to avoid using those.

superben100 wrote:

Bit of a necrobump there…
No worries! It's an on-topic question. They're just lucky I'm still active on Scratch.

202e-202e-202e-202e-202e UNI-CODE~~~~~

Powered by DjangoBB