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:
You can nest objects:
You can use a colon, this code explains:
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.
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.
- docaiden
-
Scratcher
100+ posts
I'm making a programming language
Can you make a way to download it? and a list of commands?
- liam48D
-
Scratcher
1000+ posts
I'm making a programming language
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

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

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.
- docaiden
-
Scratcher
100+ posts
I'm making a programming language
how do i run programs on it? it seems that i cant run anything
- herohamp
-
Scratcher
1000+ posts
I'm making a programming language
How did you learn to make your own lang?
- liam48D
-
Scratcher
1000+ posts
I'm making a programming language
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

- herohamp
-
Scratcher
1000+ posts
I'm making a programming language
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
Well, HTML isn't a programming language, it's a markup language.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?
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. 
- serprinss
-
Scratcher
33 posts
I'm making a programming language
how do you run code in the codemirror editor
- superben100
-
Scratcher
1000+ posts
I'm making a programming language
how do you run code in the codemirror editorBit of a necrobump there…
- liam48D
-
Scratcher
1000+ posts
I'm making a programming language
how do you run code in the codemirror editorYou 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.
Bit of a necrobump there…No worries! It's an on-topic question. They're just lucky I'm still active on Scratch.





