Hello there,
It seems you want to do an assignment in compiler design. So far, I've helped some students in completing similar assignments related to developing the first three phases of a compiler (both bottom-up parsing and top-down parsing) using flex, bison, and C programming.
It seems you want to implement the s- and l- attributed grammar (as shown in Fig. 4.5 and 4.6), which, could be implemented after we implement the first two phases, the lexer and a parser. As this is the first time I'm dealing with attributed grammar, I would like to ask you if you can provide me with the further resources and details of the assignment that needs to be done.
Feel free to contact me, if you find this proposal useful.
Regards,
Atul Rajdhar