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

#1 2010-08-10 17:20:41

BuilderBoso
Scratcher
Registered: 2010-02-14
Posts: 9

Making Your Own Programming Language In Scratch.

I was thinking about making my own programming language in scratch and thought you could have a question box, 2 lists and a few scripts.

You make a list to display the code and another hidden list for all the commands. 

[blocks]<when green flag clicked>
(ask[typecodeinhere])
(add<answer>to [compiler[\/])
<end>[/blocks]



that's the compiler scripts.

Here is the begining of the function code
[blocks]<when[ Playbutton ]clicked>
<if>(item[function] is in [commands[\/])[/blocks]

add anything here note that "function" needn't be the command.

Last edited by BuilderBoso (2010-08-10 17:35:11)


Boso Industries Coming soon to scratch!
Look Out for IceBox and Boso OS 3.0

Offline

 

#2 2010-08-11 21:11:24

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: Making Your Own Programming Language In Scratch.

I did something like that once. It was a command line.

I had
<when green flag clicked>
<forever>
ask (Enter Your Code:)
<end>
For the stage. On a sprite, I had:
<when green flag clicked>
<forever>
<if> <(<{ answer }>  <=> (command) )>
(code)
<end>

I'd have one of the last script for every command (it was all in one long, huge script)


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#3 2010-08-11 21:21:52

Thomas96
Scratcher
Registered: 2010-03-25
Posts: 100+

Re: Making Your Own Programming Language In Scratch.

Huh?

Offline

 

Board footer