label2…) each time it is called. (Use an int attribute to store the label index and use the
stringstreamtype build the label.)
string label;field to the data type stored in the symbol table.
semantics.hthat is able to store both the type of an expression and also its generated code. Create a two-parameter constructor for this type.
expressions. (See the
label: resd 1or
label: resb 1line for each variable.
.textsection) and the code of the declarations (in the
.bsssection), and add the necessary
globaldeclarations at the beginning to form a complete assembly file.
nasmand running the executable.