1 1 vote the no of tokens in the following exp. x+++++y Compiler Design + – Anirban Chand 1.3k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply ankitgupta.1729 commented Apr 8, 2019 reply Follow flag apply the Maximal munch rule. Here, $x+++++y$ will be interpreted as $x++\; ++ \;\;+\; y$. So, no. of tokens are 5. 3 3 replyShare Anirban Chand commented Apr 8, 2019 reply Follow flag but ++ operator operates only on the variable then why not x++ + ++y? 0 0 replyShare ankitgupta.1729 commented Apr 8, 2019 reply Follow flag @Anirban Chand scan left to right and apply maximal munch. check here your question is discussed in Prof. Alex Aiken's compiler course but I am not getting the link now. 1 1 replyShare srestha commented Apr 8, 2019 reply Follow flag @ankitgupta.1729 then here token are x ++ ++ + y 5 tokens rt? 1 1 replyShare ankitgupta.1729 commented Apr 8, 2019 reply Follow flag yes. 1 1 replyShare Please log in or register to add a comment.