Snap! Console Blocks (Part 2)

I knew that. It is like Node.JS or something. But it is possible, because I have seen it before.

Well then what do they run on?

And maybe try looking at this?

Oh, and that solution is what IDLE uses for stdin/stdout/stderr, namely, redirection.

Probably C++ or C. (I did search this on Google, but it wasn't very helpful.)

Searching "what is chrome programmed in" gets this:

C, C++, Assembly, HTML, Java (Android app only), JavaScript, Python

Edit:

StackOverflow doesn't seem to have any answers either.

I am working on a project that will allow you to do this: Snap! 6.9.2 Build Your Own Blocks

@warped_wart_wars do you like it so far?

Nice! But it should wrap on letters when it needs to wrap and can't wrap on words, i.e. the iunroiuhqeoifnchoiehnurcoiwnehcinheiorhuconiwehcfinoewhurnciofuwne... in this:

Who would have something like that in there code? Anyway the code is like this:
wait [] seconds. There are spaces, so it doesn't really matter.

I have the motion category loaded into there, so you can do motion stuff. The wait block is in there as well.

Example Code:

wait [3] secs
move [100] steps
wait [3] secs

Then type /run and hit enter see what happens!

Nice!


works! Now we just need loops!

And variables. Shouldn't be to hard, since everything we need is already there.

Did you try typing in a command that isn't valid and run it using /present? Present mode HIDES errors.


/present'ed does nothing! (which I would expect at this point.)

It is /present

"ed" there isn't part of the /present I typed.

Ah, I see. Add a wait after the code.


/present'ed just waits 10 seconds, /run'ed gives this for 10 seconds:

Rather undescriptive errors.

It attempted to run the code, but it wasn't valid. But since you put /present, it wont show any errors.

Because again, it wasn't valid code. But since it is /run and not /present, it will show errors.

I plan to fix that.

Maybe there it should give something like this:

Error in syntax at line 1! No possible commands found for 'if <true> then'
Error in syntax at line 2! No possible commands found for 'say [moew]'
Error in syntax at line 3! No possible commands found for 'end if'

Yeah, that was what I was going to do.