Funny programming language in snap! (Part 2)

that should be for arguments
anyway arrays are literally just lists but named differently

[quote="4cwefgtw9e587, post:78, topic:5858"]
lists[/quote]
?? also, I would like dictionaries to be a separate data type, but you can still have multi dimentional lists

An array or dictionary(something that would have a value and a key to access a value would simply be)

"Pokedex" = {
"Pokemon"
"Pokemon Number"}
//Both Pokemon and Pokemon Number would be lists in this case.

what syntax

what about new vector

what is a "new vector"?

a list-like data type

newVector3(stuff, stuff, stuff)

but thats no english
maybe 2D lists look like this?

(
(yo, hello, wassup)
(yo, wassup, hello)
(yo, wassup, hi)
)

Oh um, vector might be too complex and I do not know what I could use them for.

yea, i wont use it either, the only way i know how to use vectors are like this

transform.position += newVector3(3, 0, 0)

yes, ,good idea.

We've been arguing about what arrays and variables should look like for like 100 posts now and haven't put any thought or work into an interpreter

so it will work like this

set code to List
forever
if key up arrow pressed?
ask [] and wait
add answer to code
end
end

we will need a detector to see if the command are real

yes. also, we will use brackets,not end.

No, I mean how to actually interpret and run the code.

??
im too lazy to take the script pic, im trying to do snap blocks but idk how to do it in [scratchblocks]

two brackets then, for loops? because you need brackets to read variable names.

repeat [[
change [i] by 1
//do some stuff
]] until ([i] > 10)

I can write the interpreter, I've created some before.
If you want to learn how to write interpreters try https://craftinginterpreters.com.

in snap!

i mean these other brackets } {

change the variable named "i" by 1

Seems wordy.

change the variable "i" by 1 //?

This topic was automatically closed after reaching the maximum limit of 100 replies. Continue discussion at Funny programming language in snap! (Part 3).