2 2 votes A lexical analyzer recognizes the following set of tokens defined by regular expressions:Token $1\left(T_1\right)$ : $a$ Token $2\left(T_2\right)$ : $a a$ Token 3 ( $T_3$ ): $a^* b$ (zero or more 'a's followed by a single ' b ') Token $4\left(T_4\right)$ : $b a$Given the input string "aaaba", determine how many tokens will be generated using the Maximal Munch (Longest Prefix Match) rule. Compiler Design goclasses compiler goclasses-cs-dpp goclasses-cs-dpp-day-169 goclasses-compiler-practice-questions numerical-answers + – GO Classes 339 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
2 2 votes T3 T1 will be generated Hence the answer is 2 GO Classes answered Jan 1 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes 2 JAY_THAKAR answered Jan 9 JAY_THAKAR comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Ans 2 binaryXninja answered Feb 24 binaryXninja comment Share Follow 0 reply Please log in or register to add a comment.