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)
Offline
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)
)Offline