Discuss Scratch

liam48D
Scratcher
1000+ posts

I'm making a programming language



Use it online if on Firefox Nightly (or some other great ES6+ browser)

Learn more about Programming Language Thing!

Please give input

It's really, really in-development. Expect lots to change.

Simple demo:

# This is a comment
print('Hello')

# Set a variable
my_var => 15
print(my_var) # 15

# Change a variable (doesn't break past references)
my_var -> add(my_var 12)
print(my_var) # 27

# Super basic function
my_fn => fn() {
print('Hello world!')
}
my_fn() # Hello world!

# Function with return value
add_three => fn(x) {
^ add(x 3)
}
print(add_three(4)) # 7
print(add_three(mul(2 5))) # 13

Last edited by liam48D (Feb. 21, 2016 03:49:05)


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

I'm making a programming language

liam48D wrote:

Learn more about Programming Language Thing!

Please give input

It's really, really in-development. Expect lots to change.
Nice big capital letters thing



That is a really nice parser you wrote there.

Great job.

I need to share more of my parsing projects

Last edited by Dylan5797 (April 4, 2016 22:19:06)








im so ocd about ip addresses


can you guess what my user icon is

new record


dylan beswick · writing · github · soundcloud

I enjoy coding, writing electronic music, building computers and servers, and playing the piano. I am a big fan of F-777's music, you should really check it out.

I have written a few semi-common pieces of code that are used in scratch projects, like scratchapi.

I'm kind of lonely, I'd like a bit of attention, if that's possible.












i maxed out geoguessr at 25,000 points – https://geoguessr.com/results/GiXQHzXVQSEeWiYT
i truly feel sorry for everybody else in my country
liam48D
Scratcher
1000+ posts

I'm making a programming language

Dylan5797 wrote:

liam48D wrote:

Learn more about Programming Language Thing!

Please give input

It's really, really in-development. Expect lots to change.
Nice big capitol letters thing



That is a really nice parser you wrote there.

Great job.

I need to share more of my parsing projects
Thanks!

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

I'm making a programming language

Dylan5797 wrote:

liam48D wrote:

Learn more about Programming Language Thing!

Please give input

It's really, really in-development. Expect lots to change.
Nice big capitol letters thing



That is a really nice parser you wrote there.

…but…but…it's not nearley-based!
liam48D
Scratcher
1000+ posts

I'm making a programming language

Hardmath123 wrote:

Dylan5797 wrote:

liam48D wrote:

Learn more about Programming Language Thing!

Please give input

It's really, really in-development. Expect lots to change.
Nice big capitol letters thing



That is a really nice parser you wrote there.

…but…but…it's not nearley-based!
Oh noeeees


I'm so sorry I wrote it all without using anybody else's code

(except this)

(and this)

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

I'm making a programming language

Dylan5797 wrote:

Nice big capitAl letters thing
get it right
Jonathan50
Scratcher
1000+ posts

I'm making a programming language

Neat. Is it functional? Is -> assignment?
It makes me think of Smalltalk in syntax.
Dylan5797
Scratcher
1000+ posts

I'm making a programming language

__init__ wrote:

Dylan5797 wrote:

Nice big capitAl letters thing
get it right
fiNe.







im so ocd about ip addresses


can you guess what my user icon is

new record


dylan beswick · writing · github · soundcloud

I enjoy coding, writing electronic music, building computers and servers, and playing the piano. I am a big fan of F-777's music, you should really check it out.

I have written a few semi-common pieces of code that are used in scratch projects, like scratchapi.

I'm kind of lonely, I'd like a bit of attention, if that's possible.












i maxed out geoguessr at 25,000 points – https://geoguessr.com/results/GiXQHzXVQSEeWiYT
i truly feel sorry for everybody else in my country
liam48D
Scratcher
1000+ posts

I'm making a programming language

Jonathan50 wrote:

Is -> assignment?
Well actually we're trying to decide what's assignment and what's changing.

I think we've agreed on this:

-> change variable Changes the value of a variable without breaking references. Old references will go to this value.
=> assign variable Creates a new variable with the given value. Old references to this variable will still go to the old one.

(It's actually implemented as -> is assign, -= is change, but that makes no sense and I'll be changing it in the code soon.)

Jonathan50 wrote:

Is it functional?
Yep - it's all functions (and of course functions are first class).

Jonathan50 wrote:

It makes me think of Smalltalk in syntax.
It's actually not based at all on Smalltak

Last edited by liam48D (Feb. 15, 2016 23:17:07)


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

I'm making a programming language

liam48D wrote:

Jonathan50 wrote:

It makes me think of Smalltalk in syntax.
It's actually not based at all on Smalltak
No, it's not based on Smalltalk (what?) it's just some things are syntactically similar to smalltalk.
Smalltalk also uses an arrow for assignment and a caret for returning values.
liam48D
Scratcher
1000+ posts

I'm making a programming language

Jonathan50 wrote:

liam48D wrote:

Jonathan50 wrote:

It makes me think of Smalltalk in syntax.
It's actually not based at all on Smalltak
No, it's not based on Smalltalk (what?) it's just some things are syntactically similar to smalltalk.
Smalltalk also uses an arrow for assignment and a caret for returning values.
Smalltalk, sorry, typo.

Okay

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

I'm making a programming language

Nize thang

Moving from Scratch? Don't learn C or Java, try Snap!
it haz OOP
DrKat McKatFace
First of all I'm 100% human and humans does not have a cat face
and second, the Boaty McBoatFace/Parsey McParseFace madness has just begun

λ
Sharp, my new Scratch mod
Is my post/siggy worthy for an internet?
thisandagain
Scratch Team
500+ posts

I'm making a programming language

Very cool. Great to see folks starting to experiment with designing their own languages / parsers.
DrKat123
Scratcher
1000+ posts

I'm making a programming language

thisandagain wrote:

Very cool. Great to see folks starting to experiment with designing their own languages / parsers.
Ooh thisandagain says its cool.
Nize job liam4

Moving from Scratch? Don't learn C or Java, try Snap!
it haz OOP
DrKat McKatFace
First of all I'm 100% human and humans does not have a cat face
and second, the Boaty McBoatFace/Parsey McParseFace madness has just begun

λ
Sharp, my new Scratch mod
Is my post/siggy worthy for an internet?
liam48D
Scratcher
1000+ posts

I'm making a programming language

thisandagain wrote:

Very cool. Great to see folks starting to experiment with designing their own languages / parsers.
Thanks! Now I feel dedicated (and more motivated) to finishing this again..

Last edited by liam48D (Feb. 20, 2016 00:01:29)


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

I'm making a programming language

Hardmath123 wrote:

but…it's not nearley-based!
What parsing technique does this use?

tosh · slowly becoming a grown-up adult and very confused about it
-Io-
Scratcher
1000+ posts

I'm making a programming language

blob8108 wrote:

Hardmath123 wrote:

but…it's not nearley-based!
What parsing technique does this use?
Looks like blood, tears, and effort.

blob8108
Scratcher
1000+ posts

I'm making a programming language

-Io- wrote:

Looks like blood, tears, and effort.
That's not a technique from parsing theory that I'm familiar with

tosh · slowly becoming a grown-up adult and very confused about it
liam48D
Scratcher
1000+ posts

I'm making a programming language

-Io- wrote:

blob8108 wrote:

Hardmath123 wrote:

but…it's not nearley-based!
What parsing technique does this use?
Looks like blood, tears, and effort.
Indeed so.

It's really basic parsing. Really basic.

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

I'm making a programming language

blob8108 wrote:

-Io- wrote:

Looks like blood, tears, and effort.
That's not a technique from parsing theory that I'm familiar with

It's a recently-(re)discovered technique that's only just being taught to freshmen now

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran

Powered by DjangoBB

Standard | Mobile