Raj Kumar
Computer Science And Engineering

Explain how transition diagram is used to identify relational operator during Lexical Analysis. Write the code for same

System Software and Compiler Design

Explanation

1332    0

Transition diagrams depict the actions that take place when a lexical analyzer is called by the parser to get the next token.

We can use a transition diagram to keep track of information about the characters that are seen as the forward pointer scans the input. We do so by moving position to position in the diagrams as the characters are read.

 

 



Share:   
   Raj Kumar
Computer Science And Engineering

More Questions from System Software and Compiler Design Module 3