1. int x = 5; 2. float y = "hello; 3. String @z = "9.5"; 4. int x = cse340; 5. if ( x > 14) while (5 == 5) if (int a) a = 1; 6. x = x; for ( ; ; ); 7. y = 13.45.0; 8. int me = 99999000001111222000000111111222223443483045830948; 9. while { x != 9} (); 10. int {x} = 10;
int x = 5 ; String Word ✅ Keyword String Word ✅ Id String Word ✅ Operator String Word ✅ Integer String Word ✅ Delimiter Token à 5 items, all correct, 5 words
String @z = "9.5" ; String Word ✅ Keyword String --- ❌ --- String Word ✅ Operator String Word ✅ Value (String Type) String Word ✅ Delimiter Token à 5 items, 4 correct, 4 words + 1 wrong item I decide to ignore @Tags capability of Java
int x = cse340 ; String Word ✅ Keyword String Word ✅ Id String Word ✅ Operator String Word ✅ Id String Word ✅ Delimiter Token à 5 items, all correct, 5 words
1. void metodo ( int parametro ) { } 2. char w ; int w ; float w ; 3. hola mundo :-) 4. (5 == 5) if (int a) for 5. x = x + x < x / x ( x ) 6. float == int 7. 0xFF < > 512 8. for if int while void + 1/0 9. 5e-1-1-1-1-1-x
slides can only be used as study material for the Compilers course at Universidad Panamericana. They cannot be distributed or used for another purpose.