3.1.A. Symbol Table Design Every key word is a token and has a unique integer code as shown in the table: Keyword Token Code Begin 300 If 323 For 302 Switch 305 While 376 So, The identifier token has a code 256, the number token has a code 257, and every special character is a token and has an integer token code equals its ASCII number. Tokens of two characters have unique to Codes as shown in the below table: Tow Characters Token Code – Tokens != 406 == 407 <= 408 >= 409
3.1.A. Symbol Table Design Every key word is a token and has a unique integer code as shown in the table: Token Code Keyword 300 Begin 323 If 302 For 305 Switch 376 While So, The identifier token has a code 256, the number token has a code 257, and every special character is a token and has an integer token code equals its ASCII number. Tokens of two characters have unique to Codes as shown in the below table: Token Code Tow – Characters Tokens 406 != 407 == 408 <= 409 >=