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)
Offline
0.5 is the newest version!
Here is some code that makes an awesome game using lots of new features:
/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!
Offline
Sorry for double post, but anyone got any ideas? I might change the syntax for commands, but anyone else got ideas?
Offline
I'd say you should do this:
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)
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
kI'll post a project on this!
Last edited by Greatdane (2009-10-25 18:53:57)
Offline
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!!!
Thanks, I didn't know people wanted this.
Last edited by ThePiGuy (2009-10-25 22:38:11)
Offline
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!
Offline
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
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.
Offline
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?

Offline
With your thought styles you would make an excellent OS maker
Offline
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
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.
Offline
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:
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)
Offline