Skip to content

Latest commit

 

History

History

2-SimpleLexicalAnalyzer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Compiler Design - Assignment 2

Shrirang Prashant Deshmukh | 19CS01065

Program takes a statement as input and return the sequence of tokens as output

Compile using : g++ 19CS01065_A2.cpp -o tokenizer

Run : ./tokenizer

Transition Diagrams Implemented

  1. if
  2. else
  3. then
  4. identifier
  5. number
  6. relational operators
  7. whitespace