Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Parsing in C
<HOW YOUR COMPUTER READS YOUR CODE>
translation_unit
function_definition
main
declaration specifier init_declaration_list ; expression_statememt
Then these tokens are formed into a
Type_specifier identifier expersion ;
hierarchical structure known as a
assignment_expression
INT x
parse tree. This is how the computer
assignment_expression
unary_expression =
2
source code.
identifier
The compiler then records context about main func int global
the program, including variable and x int local main
fuction names.
5.) GENERATES
01010101000101
00101010110101
Contextualizes your code - converts
01011101000000 to assembly and is read in binary.