Lexical Analyzer

Job ID: 35485350

Budget: $30 – $250 USD

design and implement and Lexical Analyzer for a subset of the Pascal Programming Language. You program should be able to accept as input a file containing statements in Pascal and correctly perform a lexical analysis of each statement.
Samples of the output and sample C code for a lexical analyzer for tokens and lexemes can be at the last.
1. You will need to create a list (some structure to store) of the reserved words for Pascal. (See the link to the Pascal site posted with the assignment).
2. You will need to create a list of various operators used in Pascal by category, for example
token ASSIGN_OP
lexeme :=
3. You will need to create a list of acceptable characters for variables and constants.
4. You will need to write code to test the validity of identifiers, If a string does not match any of the categories, you should indicate that as UNKNOWN.