The program takes as input a program written in Java and parses it lexically using deterministic finite automata (DFA), the program parses the following:
- Correct closing of comments
- Correct structure of an identifier in Java
- Correct structure of a number according to its base (decimal, octal or hexadecimal)
- Proper use of periods in numerical notation
The program parses the file and displays the lines that contain errors in a small console