1. What are the main functions of a lexical analyser? 2. State whether the following statements are true or false: (a) A lexical analyser strips out the comments and white spaces from input source...


1. What are the main functions of a lexical analyser?


2. State whether the following statements are true or false: (a) A lexical analyser strips out the comments and white spaces from input source program. (b) The part of the input stream that qualifies for a certain type of token in a lexical analyser is called as lexeme. (c) The lexical analyser keeps track of the new line characters, so that it can output the line number with associated error messages, in case of errors in the input source program. (d) The lexical analyser helps in creation of symbol table.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here