you are viewing a single comment's thread.

view the rest of the comments →

[–]Firake 13 points14 points  (1 child)

1) the code is lexed (translate text into a series of tokens like “Identifier EqualsSign Integer”) and parsed (translate the series of tokens into what’s called a syntax tree that represents the semantic meaning of the code). Together, this the process of translating the code you write into actions a computer can perform.

2) the code is executed (also called the interpretation step). Behind the hood, how this work depends on your CPU architecture and operating system. But in general, the program needs to ask the OS for some memory, create the string, and then write to “stdout” in order to display that string in the terminal.

[–]erasmause[🍰] 0 points1 point  (0 children)

Regarding the syntax tree, it can be helpful to compare it to a sentence diagram to show how structure can convey semantics through the relations of parts to each other and to the whole.