0 votes 0 votes the no of tokens in the following exp. x+++++y Anirban Chand asked Apr 8, 2019 Anirban Chand 632 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply ankitgupta.1729 commented Apr 8, 2019 reply Follow Share apply the Maximal munch rule. Here, $x+++++y$ will be interpreted as $x++\; ++ \;\;+\; y$. So, no. of tokens are 5. 3 votes 3 votes Anirban Chand commented Apr 8, 2019 reply Follow Share but ++ operator operates only on the variable then why not x++ + ++y? 0 votes 0 votes ankitgupta.1729 commented Apr 8, 2019 reply Follow Share @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 votes 1 votes srestha commented Apr 8, 2019 reply Follow Share @ankitgupta.1729 then here token are x ++ ++ + y 5 tokens rt? 1 votes 1 votes ankitgupta.1729 commented Apr 8, 2019 reply Follow Share yes. 1 votes 1 votes Please log in or register to add a comment.