In a team of three or four students, list the tokens and token type (e.g. String, Integer, Right Parenthesis, etc.) which comprise the program below. The program below is defined by the ChagaLite programming programming language.
Please use the document, Definitions for tokens in Backus-Naur Form.
procedure main (void) { int counter; int state; counter = 1; while (counter <= 100) { state = 0; if ((counter % 3) == 0) { state = 1; } if ((counter % 5) == 0) { state = state * 2 + 2; } if (state == 1) { printf ("Fizz"); } else { if (state == 2) { printf ("Buzz"); } else { if (state == 4) { printf ("Fizzbuzz"); } else { printf ("%d", counter); } } } counter = counter + 1; if (counter <= 100) { printf (", "); } else { printf ("\n"); } } }
Since this is a group assignment, please write the names of each member of the team student on your assignment submission along with "Exercise 2a: Tokenization".