54 Well, given I don't recognize the system being used, what you posted would be way worse than what today was. The homework consisted of "edit some files and put a comment that they tell you at the top"
55 that system is something they made up. The stuff between the curlybrackets is meant to represent the memory. The stuff between the square brackets are meant to represent instructions. Thus
means you have some memory block withing it something called x which has the value 10. and
is the instruction to get the value of of, meaning that if we combine them to
we get as answer the value 10.
Of course, we can also make this a bit more "complicated" by putting memory in memory and chaining instructions like
Code:
{x:={a1:=10,a2:=5},y:=6}[x][a1:=5][a1]
which means that we have a memory block containing the names x and y.
y contains the simple value 6 and x contains a new memory block. (where a1 has the value 10 and a2 has the value 5)
The instructions are
get the value of X (results in -> {a1:=10,a2:=5})
set a1 to 5 (results in {a1:=5, a2:=5})
return the value of a1 (results in -> 5)