This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2009-10-11 12:37:06

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: The new S programming language IN DEVELOPMENT

You’ve made a lot of progress with your language and I’ve been thinking what else could be done.

I read about a new feature of  the Android phone that, in maybe a strange way, could become part of your language.   The article says that the phone could use its GPS to detect what store you were currently inside of and could be programmed to automatically bring up a specific list – for example a grocery list.  I wondered what it be like if the Cat could execute specific S routines when it was placed on other sprites.

I’ve written an example project that has an A and B button and stub where I think your S language could be added.  http://scratch.mit.edu/projects/DigimathFixit/713148

Last edited by Digimath (2009-10-11 14:18:53)


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

#27 2009-10-11 14:17:39

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

0.5 is the newest version!

Here is some code that makes an awesome game using lots of new features:

Code:

/This is a game where you have 10 seconds to get the box labeled 'A'. Move the cat with the arrow keys, and if you touch the box, you win!
i=10
j=0
RPT 10
WRT iv
i--
Ife :1
kyR
RTE09
MVE 8
:1
Ife :2
kyL
RTE-9
MVE 8
:2
Ife :3
kyU
RTE00
MVE 8
:3
Ife :4
kyD
RTE18
MVE 8
:4
Ife :5
thA
j=1
NTE 72
:5
eRP
Ife :6
Ij= 1
WRT Winner
:6
Ife :7
Ij= 0
WRT No box
:7
WT 1
WRT GAME
WRT OVER

Enjoy!


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#28 2009-10-18 19:35:50

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

Sorry for double post, but anyone got any ideas? I might change the syntax for commands, but anyone else got ideas?


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#29 2009-10-25 18:53:25

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

I'd say you should do this:

Code:

Instead of just having one input line, for instance:
go(3)
have more
go:
3
Then you can add any integer or number.

OR(Hang on to me here)

Code:

First, compile the command into a list:
set place to 1
repeat (length of (item place of commands list):
    add (letter 'i' of (item 'place' of commands list)) to my_compile
    change i by 1
Then, find the integer
If a command will look like this:
ask(Hi how are you?)
Delete the last letter
Then find out the command:
set place to 1
repeat until (item place of my_compile = '(' ):
     add (item place of my_compile) to m_compile_compiled
     delete (place of my_compile)
     change place by 1
delete ((place + 1) of my compile)
Then you will have two lists:
my compile:
H
i

h
o
w

a
r
e

y
o
u

and m_compiled_compiled:

a
s
k

I'll post a project on this!

Last edited by Greatdane (2009-10-25 18:53:57)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#30 2009-10-25 22:37:57

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

WOW, I want to do that!!!!!!! I actually thought of that before, but I didn't get around to it, because I didn't want to change ALL the ( Letter () of () ) blocks. I think I'll add this in 1.0!!!  tongue  Thanks, I didn't know people wanted this.

Last edited by ThePiGuy (2009-10-25 22:38:11)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#31 2009-10-25 23:19:20

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

Hey, I like your programming language. In fact, you inspired me to make mine. You can download at:
http://www.infinity.2kmegs.com/downloads.php

Thanks for inspiring me!  big_smile


Hai.

Offline

 

#32 2009-10-26 14:14:54

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

I tried to do it, but Scratch started to glitch up very wierdly. :p

I'll try it again.

You can read my code? You must be a REALLY good C# programmer!


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#33 2009-10-26 16:12:23

rocket101
Scratcher
Registered: 2009-08-21
Posts: 500+

Re: The new S programming language IN DEVELOPMENT

rdvonz wrote:

This entire Idea is flawed.

making a programming language in a program that is designed to make programming easy?

What kind of arbitrary thought process did you go through to justify this waste of time?

That's really mean! Would you like it if it was your project and I said it to you? I think S  programming language a great project.

Offline

 

#34 2009-10-26 16:33:43

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

rocket101 wrote:

rdvonz wrote:

This entire Idea is flawed.

making a programming language in a program that is designed to make programming easy?

What kind of arbitrary thought process did you go through to justify this waste of time?

That's really mean! Would you like it if it was your project and I said it to you? I think S  programming language a great project.

Leave him alone. He might have some problems.(I am not trying to offend anyone)

Anyway, I'm trying to build a demo of what I said.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#35 2009-10-26 17:29:47

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

Oh, and PiGuy, you did not spell DEVELOPMENT wrong. But you did spell 'maybe' wrong.


Hai.

Offline

 

#36 2009-10-26 20:21:29

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

rocket101 wrote:

rdvonz wrote:

This entire Idea is flawed.

making a programming language in a program that is designed to make programming easy?

What kind of arbitrary thought process did you go through to justify this waste of time?

That's really mean! Would you like it if it was your project and I said it to you? I think S  programming language a great project.

Hey rocket101, that issue has been already resolved - Paddle2See had intervened and tried to talk to rdvonz in a previous post trying to resolve the situation (See here). No need to cause more drama for an issue that has already been resolved, okay?  wink


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#37 2009-10-26 20:53:37

onethousand
Scratcher
Registered: 2009-05-03
Posts: 96

Re: The new S programming language IN DEVELOPMENT

With your thought styles you would make an excellent OS maker


Ready? Defend!
http://scratch.mit.edu/projects/onethousand/741108

Offline

 

#38 2009-10-26 21:15:20

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: The new S programming language IN DEVELOPMENT

Nice job. It's a cool idea to come up with your own interpreted language in another language. You'll learn a lot about programming that way.

Offline

 

#39 2009-11-04 22:22:05

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

ThePiGuy, I made the parser    that you were talking about. Click on the cat, do what it says, and watch it go! Hope it helps.  smile


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#40 2009-11-07 12:08:35

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

I already had one, but this one IS A LOT BETTER! I might use it, I don't know, but mine currently looks like this:

Code:

SAY:(2+2
________
Makes cat say "4"

I'll think about it!

PS. I didn't really read the code, I just know what you meant because of the last part! I do program C#, though...

Last edited by ThePiGuy (2009-11-07 12:09:55)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

Board footer