de provided source code (3 rules) 2 •Program the rules PROGRAM, BODY, EXPRESSION, X, Y, R, E, C (11 rules) 3 •Program the full set of rules in the grammar (16 rules) 4 •Report syntactical errors (one error and stop) PANIC MODE 5 •Implement error synchronization •ERROR RECOVERY What Next
{ x = a; x = 0x36AW; x = ((((((((((y)))))))))); x = (5+(4-(3+(5+5/(2+(3+(1+(77+(1-(y)))))))))) + “hello” + ‘q’; if (a < b) {} else {} if (a < b) { if (a < b) { } else { } } } Input: Line 3: expected value, identifier or ( Output:
slides can only be used as study material for the Compilers course at Universidad Panamericana. They cannot be distributed or used for another purpose.